feat: add unassigned assets banner

This commit is contained in:
rajun 2026-10-27 16:28:58 +05:30
parent c8911e7e06
commit 6e4c4f2c9d

View File

@ -0,0 +1,18 @@
import { Link } from 'react-router';
import { Button } from '~/components/ui/button';
import { Text } from '~/components/ui/text';
import { ASSET_FILTER } from '~/data/assets/constants';
import { ROUTES } from '~/data/routes';
export function UnassignedBanner({ count }: { count: number }) {
return (
<div className='flex flex-wrap items-center justify-between gap-4 rounded-card-sm bg-surface-dialog px-4 py-3 ring-1 ring-inset ring-border-subtle'>
<Text>
{count} {count === 1 ? 'asset isn’t' : 'assets aren’t'} in a project yet. Their AR pages show only the thob logo.
</Text>
<Button asChild variant='link'>
<Link to={ROUTES.assetsFiltered(ASSET_FILTER.unassigned)}>Review unassigned →</Link>
</Button>
</div>
);
}