import { cva, type VariantProps } from 'class-variance-authority' import { cn } from '../../utils' export const toastVariants = cva( cn( 'g-4 pointer-events-auto relative flex w-full items-center space-x-4 overflow-hidden rounded-lg border border-solid p-4', ), { variants: { variant: { info: cn( 'info group border-progress-border bg-progress text-progress-foreground', ), success: cn( 'success group border-success-border bg-success text-success-foreground', ), warning: cn( 'warning group border-warning-border bg-warning text-warning-foreground', ), error: cn( 'error group border-error-border bg-error text-error-foreground', ), }, width: { default: 'md:w-[600px]', full: 'w-full', }, }, defaultVariants: { variant: 'info', width: 'default', }, }, ) export type Variant = VariantProps['variant'] export type Width = VariantProps['width']