import { VariantProps, cva } from 'class-variance-authority' import { Loader2 } from 'lucide-react' import { cn } from '../lib/utils' const loaderVariants = cva('flex animate-pulse items-center justify-center gap-2 rounded-md p-4 text-xs', { variants: { variant: { default: 'bg-muted text-secondary-foreground', outline: 'border text-muted-foreground', }, }, defaultVariants: { variant: 'default', }, }) type LoaderProps = VariantProps & { message?: string className?: string style?: React.CSSProperties } export function Loader({ message = 'Loading...', variant, className, style }: LoaderProps) { return (
{message}
) }