import React from 'react'; import { Loader2 } from 'lucide-react'; interface LoadingProps { size?: 'sm' | 'md' | 'lg'; text?: string; fullScreen?: boolean; className?: string; } const Loading: React.FC = ({ size = 'md', text = 'Loading...', fullScreen = false, className = '', }) => { const sizeClasses = { sm: 'w-4 h-4', md: 'w-8 h-8', lg: 'w-12 h-12', }; const textSizeClasses = { sm: 'text-sm', md: 'text-base', lg: 'text-lg', }; const content = (
{text && (

{text}

)}
); if (fullScreen) { return (
{content}
); } return content; }; export default Loading;