"use client"; import { keyframes } from "@emotion/react"; import { useCustomTheme } from "../../../core/design-system/CustomThemeProvider.js"; import type { Theme } from "../../../core/design-system/index.js"; import { iconSize } from "../../../core/design-system/index.js"; import { StyledSvg } from "../design-system/elements.js"; /** * @internal */ export const Spinner: React.FC<{ size: keyof typeof iconSize; style?: React.CSSProperties; color?: keyof Theme["colors"]; }> = (props) => { const theme = useCustomTheme(); return ( 64 ? "2" : "4"} /> ); }; // animations const dashAnimation = ` @keyframes tw-spinner-circle-dash { 0% { stroke-dasharray: 1, 150; stroke-dashoffset: 0; } 50% { stroke-dasharray: 90, 150; stroke-dashoffset: -35; } 100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124; } `; const rotateAnimation = keyframes` 100% { transform: rotate(360deg); } `; const Svg = /* @__PURE__ */ StyledSvg({ animation: `${rotateAnimation} 2s linear infinite`, height: "1em", width: "1em", });