@dxos/echo
    Preparing search index...

    Function getIcon

    • Get the icon annotation for the object (or any entity), resolved via its type-level IconAnnotation. Accepts both reactive entities and snapshots, and either Objects or Relations — the underlying schema-based lookup works for both.

      Returns the full { icon, hue } annotation; callers wanting just the icon name typically write Obj.getIcon(obj)?.icon ?? 'ph--cube--regular'.

      Parameters

      Returns undefined | Annotation.IconAnnotation

      O(1) schema annotation lookup, but decodes the annotation value on every call (not cached).