MCPcopy
hub / github.com/wavetermdev/waveterm / getViewIconElem

Function getViewIconElem

frontend/app/block/blockutil.tsx:163–173  ·  view source on GitHub ↗
(
    viewIconUnion: string | IconButtonDecl,
    overrideIconColor?: string
)

Source from the content-addressed store, hash-verified

161}
162
163export 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
175export function useTabBackground(
176 waveEnv: TabBackgroundEnv,

Callers 2

BlockFrame_HeaderFunction · 0.90

Calls 1

getBlockHeaderIconFunction · 0.85

Tested by

no test coverage detected