16 lines
656 B
TypeScript
16 lines
656 B
TypeScript
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>
|
|
);
|
|
}
|