import { css, keyframes } from "goober"; import React from "react"; const spin = keyframes` to { transform: rotate(360deg); } `; const pulse = keyframes` from { transform: scale(0.5); } to { transform: scale(1); } `; export interface TwinSpinProps { className?: string; color?: string; width?: number | string; height?: number | string; style?: React.CSSProperties; duration?: string; } const TwinSpin: React.FC> = ({ className = "", color = "#0d6efd", width = "2rem", height = "2rem", style = {}, duration = "0.6s", ...others }) => { const resolvedWidth = typeof width === "number" ? `${width}px` : width; const resolvedHeight = typeof height === "number" ? `${height}px` : height; return (
); }; export default TwinSpin;