3v324v23's picture
Merge Conflict solved | Build error solved
205f25f
Raw History Blame Contribute Delete
586 Bytes
import { Loader } from 'lucide-react';
import { cn } from '@/lib/utils';
interface LoadingStateProps {
message?: string;
fullPage?: boolean;
}
export function LoadingState({ message = 'Loading...', fullPage = false }: LoadingStateProps) {
return (
<div className={cn('flex items-center justify-center', fullPage ? 'h-full min-h-[400px]' : 'py-12')}>
<div className="text-center">
<Loader className="w-10 h-10 text-primary animate-spin mx-auto mb-3" />
<p className="text-sm text-gray-600">{message}</p>
</div>
</div>
);
}