MetaEntityIcon
A universal icon component for Tracker meta-entities. Automatically selects the appropriate icon based on the entity type:
- project — for projects
- portfolio — for portfolios
- icon — for goals
Usage
import {MetaEntityIcon} from '@weavix/tracker-components';
import type {MetaEntityV2} from '@weavix/tracker-api-types';
// entity — a MetaEntityV2 object from Tracker API
<MetaEntityIcon entity={entity} />
Props
| Prop | Type | Description |
|---|---|---|
entity |
MetaEntityV2 |
Meta-entity object from Tracker API. The entity type determines which icon will be displayed |
Was the article helpful?
Previous