forked from rajun/ar-test
19 lines
829 B
TypeScript
19 lines
829 B
TypeScript
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>
|
||
);
|
||
}
|