import { css, keyframes } from "goober"; import React from "react"; const rotate = keyframes` 100% { transform: rotate(360deg); } `; const dash = keyframes` 0% { stroke-dasharray: 1, 200; stroke-dashoffset: 0; } 50% { stroke-dasharray: 90, 200; stroke-dashoffset: -35px; } 100% { stroke-dashoffset: -125px; } `; export interface CircularProgressProps { className?: string; color?: string; width?: number | string; height?: number | string; style?: React.CSSProperties; duration?: string; } const CircularProgress: React.FC> = ({ className = "", color = "#0d6efd", width = "3rem", height = "3rem", style = {}, duration = "2s", ...others }) => { const resolvedWidth = typeof width === "number" ? `${width}px` : width; const resolvedHeight = typeof height === "number" ? `${height}px` : height; return ( ); }; export default CircularProgress;