"use client"; import { memo } from "react"; interface GradientSpinnerProps { size?: "sm" | "md" | "lg" | "xl"; className?: string; } const GradientSpinner = memo(function GradientSpinner({ size = "md", className = "" }: GradientSpinnerProps) { const sizeMap = { sm: { size: 16, strokeWidth: 2, radius: 6 }, md: { size: 32, strokeWidth: 3, radius: 13 }, lg: { size: 48, strokeWidth: 4, radius: 20 }, xl: { size: 64, strokeWidth: 4, radius: 28 }, }; // Fallback to "md" if invalid size is provided const sizeConfig = sizeMap[size] || sizeMap.md; const { size: viewBoxSize, strokeWidth, radius } = sizeConfig; const center = viewBoxSize / 2; return ( ); }); export { GradientSpinner };