import type { VariantProps } from 'class-variance-authority' import { cn } from '@admin/utils/shared/cn' import { cva } from 'class-variance-authority' // `size="sm"` is the compact empty state that sits inside a card: the title and description step // down one text size, and the media takes the `icon-sm` tile. function Empty({ className, size = 'default', ...props }: React.ComponentProps<'div'> & { size?: 'default' | 'sm' }) { return (
) } function EmptyHeader({ className, ...props }: React.ComponentProps<'div'>) { return ( ) } const emptyMediaVariants = cva( 'mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0', { variants: { variant: { default: 'bg-transparent', icon: "flex size-12 shrink-0 items-center justify-center rounded-lg bg-card text-foreground shadow-sm [&_svg:not([class*='size-'])]:size-6", 'icon-sm': 'flex size-8 shrink-0 items-center justify-center rounded bg-card text-foreground shadow-sm' } }, defaultVariants: { variant: 'default' } } ) function EmptyMedia({ className, variant = 'default', ...props }: React.ComponentProps<'div'> & VariantProps