import { Loader2 } from 'lucide-react'; import { cn } from '@/lib/utils'; interface LoadingProps { className?: string; text?: string; size?: 'sm' | 'md' | 'lg'; } export function Loading({ className, text, size = 'md' }: LoadingProps) { const sizeClasses = { sm: 'h-4 w-4', md: 'h-6 w-6', lg: 'h-8 w-8', }; return (
{text && {text}}
); } // Full page loading component export function LoadingPage({ text = 'Loading...' }: { text?: string }) { return (
); } // Inline loading for buttons or small areas export function LoadingInline({ text }: { text?: string }) { return ; }