mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-30 02:23:47 +00:00
Add files via upload
This commit is contained in:
21
src/components/common/PageLoader.tsx
Normal file
21
src/components/common/PageLoader.tsx
Normal file
@@ -0,0 +1,21 @@
|
||||
import { DotLottieReact } from '@lottiefiles/dotlottie-react'
|
||||
|
||||
interface PageLoaderProps {
|
||||
variant?: 'dark' | 'light'
|
||||
}
|
||||
|
||||
export default function PageLoader({ variant = 'dark' }: PageLoaderProps) {
|
||||
const bgClass = variant === 'dark' ? 'bg-dark-950' : 'bg-gray-50'
|
||||
|
||||
return (
|
||||
<div className={`min-h-screen flex items-center justify-center ${bgClass}`}>
|
||||
<div className="w-48 max-w-full">
|
||||
<DotLottieReact
|
||||
src="https://lottie.host/14b9dc34-cdaf-408c-87ea-291c1b01e343/r2rZZVuahg.lottie"
|
||||
loop
|
||||
autoplay
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user