mirror of
https://gitlab.com/soapbox-pub/mkstack.git
synced 2026-12-05 08:23:35 +00:00
21 lines
622 B
TypeScript
21 lines
622 B
TypeScript
import { Card, CardContent } from '@/components/ui/card';
|
|
import { Loader2 } from 'lucide-react';
|
|
|
|
interface LoadingScreenProps {
|
|
isLoading: boolean;
|
|
}
|
|
|
|
export function LoadingScreen({ isLoading }: LoadingScreenProps) {
|
|
if (!isLoading) return null;
|
|
|
|
return (
|
|
<div className="fixed inset-0 bg-background/80 backdrop-blur-sm flex items-center justify-center z-[200]">
|
|
<Card className="border-0 shadow-lg bg-background">
|
|
<CardContent className="flex items-center justify-center p-8">
|
|
<Loader2 className="h-8 w-8 animate-spin mr-3" />
|
|
</CardContent>
|
|
</Card>
|
|
</div>
|
|
);
|
|
}
|