MCPcopy Create free account
hub / github.com/Snapchat/dagger-browser / NodeIcon

Function NodeIcon

browser/src/components/NodeIcon.tsx:8–19  ·  view source on GitHub ↗
({ kind }: Props)

Source from the content-addressed store, hash-verified

6}
7
8const NodeIcon = ({ kind }: Props) => {
9 let icon = getNodeIcon(kind);
10 if (!icon) {
11 return <span />;
12 }
13
14 return (
15 <span className={classNames("node-icon", icon.color)} title={kind || ""}>
16 {icon.label}
17 </span>
18 );
19};
20
21// TODO: Make this configurable
22let getNodeIcon = (

Callers

nothing calls this directly

Calls 1

getNodeIconFunction · 0.85

Tested by

no test coverage detected