Spaces:
Sleeping
Sleeping
File size: 586 Bytes
d084ead | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | 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>
);
}
|