ar-test/app/components/projects/list/unassigned-banner.tsx

19 lines
829 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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>
);
}