forked from rajun/ar-test
feat: add asset project chip
This commit is contained in:
parent
96439b5367
commit
dce9e4fd2d
15
app/components/assets/list/asset-project-chip.tsx
Normal file
15
app/components/assets/list/asset-project-chip.tsx
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
import { ClientLogo } from '~/components/ui/client-logo';
|
||||||
|
import { Text } from '~/components/ui/text';
|
||||||
|
import { toBrand } from '~/services/asset-media';
|
||||||
|
import type { Project } from '~/types/project';
|
||||||
|
|
||||||
|
export function AssetProjectChip({ project }: { project?: Project }) {
|
||||||
|
return (
|
||||||
|
<div className='flex min-w-0 items-center gap-2 border-t border-border-divider pt-2.5'>
|
||||||
|
{project && <ClientLogo brand={toBrand(project)} variant='mark' size='xs' />}
|
||||||
|
<Text as='span' variant='meta' tone={project ? 'secondary' : 'muted'} truncate>
|
||||||
|
{project?.name ?? 'Unassigned'}
|
||||||
|
</Text>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user