interface LoadingIconProps {
width?: number;
height?: number;
color?: string;
rx?: number;
ry?: number;
strokeWidth?: number;
className?: string;
}
export function LoadingIcon({
width = 64,
height = 64,
color = "#f21f7f",
strokeWidth = 4,
rx = 10,
ry = 10,
className,
}: LoadingIconProps) {
// accurate calculations for smooth animation
const totalLength =
(width + height - 2 * rx - 2 * ry) * 2 + 3.14 * rx + 3.14 * ry;
const lineLength = (totalLength * 1) / 3;
const emptyLength = (totalLength * 2) / 3;
return (
<>
>
);
}