| import { Loader2 } from "lucide-react"; | |
| import { motion } from "framer-motion"; | |
| interface LoadingSpinnerProps { | |
| size?: "sm" | "md" | "lg"; | |
| } | |
| export function LoadingSpinner({ size = "md" }: LoadingSpinnerProps) { | |
| const sizes = { | |
| sm: "w-4 h-4", | |
| md: "w-8 h-8", | |
| lg: "w-12 h-12" | |
| }; | |
| return ( | |
| <div className="flex items-center justify-center"> | |
| <motion.div | |
| animate={{ rotate: 360 }} | |
| transition={{ duration: 1, repeat: Infinity, ease: "linear" }} | |
| > | |
| <Loader2 className={`${sizes[size]} text-primary`} /> | |
| </motion.div> | |
| </div> | |
| ); | |
| } |
Xet Storage Details
- Size:
- 594 Bytes
- Xet hash:
- 74fb42f614d561bcf26ed60717610581f945f45303b5827743cf45ccb899ee21
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.