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'.
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 writeObj.getIcon(obj)?.icon ?? 'ph--cube--regular'.