Files
twenty_crm/front/src/modules/people/components/PersonChip.tsx
Charles Bochet 25950ab82a Introduce main identifier to power RelationFieldDisplay (#2577)
* Introduce main identifier to power RelationFieldDisplay, FilterDrodown, TableFirstColumn

* Apply to RelationPicker
2023-11-20 10:33:36 +01:00

28 lines
470 B
TypeScript

import {
EntityChip,
EntityChipVariant,
} from '@/ui/display/chip/components/EntityChip';
export type PersonChipProps = {
id: string;
name: string;
avatarUrl?: string;
variant?: EntityChipVariant;
};
export const PersonChip = ({
id,
name,
avatarUrl,
variant,
}: PersonChipProps) => (
<EntityChip
entityId={id}
linkToEntity={`/person/${id}`}
name={name}
avatarType="rounded"
avatarUrl={avatarUrl}
variant={variant}
/>
);