mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-28 17:43:47 +00:00
16 lines
448 B
TypeScript
16 lines
448 B
TypeScript
interface PageLoaderProps {
|
|
variant?: 'dark' | 'light';
|
|
}
|
|
|
|
export default function PageLoader({ variant = 'dark' }: PageLoaderProps) {
|
|
const spinnerColor = variant === 'dark' ? 'border-accent-500' : 'border-blue-500';
|
|
|
|
return (
|
|
<div className="flex min-h-screen items-center justify-center">
|
|
<div
|
|
className={`h-10 w-10 border-[3px] ${spinnerColor} animate-spin rounded-full border-t-transparent`}
|
|
/>
|
|
</div>
|
|
);
|
|
}
|