@shumoku/core · 0.4.0 · function
resolveIcon
Resolve the icon to render for a given spec. Returns the explicit `spec.icon` if any; otherwise the bundled device-type fallback; otherwise null.
resolveIcon(spec: NodeSpec | undefined): ResolvedIcon | null Parameters
| Parameter | Type | Description | Default |
|---|---|---|---|
spec | NodeSpec | undefined | No additional description. | — |
Returns
ResolvedIcon | null