(
viewIconUnion: string | IconButtonDecl,
overrideIconColor?: string
)
| 161 | } |
| 162 | |
| 163 | export function getViewIconElem( |
| 164 | viewIconUnion: string | IconButtonDecl, |
| 165 | overrideIconColor?: string |
| 166 | ): React.ReactElement { |
| 167 | if (viewIconUnion == null || typeof viewIconUnion === "string") { |
| 168 | const viewIcon = viewIconUnion as string; |
| 169 | return <div className="block-frame-view-icon">{getBlockHeaderIcon(viewIcon, overrideIconColor)}</div>; |
| 170 | } else { |
| 171 | return <IconButton decl={viewIconUnion} className="block-frame-view-icon" />; |
| 172 | } |
| 173 | } |
| 174 | |
| 175 | export function useTabBackground( |
| 176 | waveEnv: TabBackgroundEnv, |
no test coverage detected