import * as React from "react"; import styled from "styled-components"; type Props = React.HTMLAttributes & { color?: string; }; export default function Spinner({ color, ...props }: Props) { return ( ); } const SVG = styled.svg` @keyframes rotator { 0% { transform: rotate(0deg); } 100% { transform: rotate(270deg); } } animation: rotator 1.4s linear infinite; margin: 4px; `; const Circle = styled.circle<{ $color?: string }>` @keyframes dash { 0% { stroke-dashoffset: 47; } 50% { stroke-dashoffset: 11; transform: rotate(135deg); } 100% { stroke-dashoffset: 47; transform: rotate(450deg); } } stroke: ${(props) => props.$color || props.theme.textSecondary}; stroke-dasharray: 46; stroke-dashoffset: 0; transform-origin: center; animation: dash 1.4s ease-in-out infinite; `;