({ kind }: Props)
| 6 | } |
| 7 | |
| 8 | const 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 |
| 22 | let getNodeIcon = ( |
nothing calls this directly
no test coverage detected