import type { ProvidedEntity } from '@h5web/shared'; import { isComplexValue } from '@h5web/shared'; import { useDataContext } from '../providers/DataProvider'; import AttributeLink from './AttributeLink'; import { renderComplex } from './utils'; const FOLLOWABLE_ATTRS = new Set([ 'default', 'signal', 'axes', 'auxiliary_signals', ]); interface Props { entity: ProvidedEntity; onFollowPath: (path: string) => void; } function AttributesInfo(props: Props) { const { entity, onFollowPath } = props; const { attrValuesStore } = useDataContext(); const attrValues = attrValuesStore.get(entity); return ( <> {entity.attributes.map(({ name, type }) => { const value = attrValues[name]; return (