/** @jsxImportSource @emotion/react */ import { css } from '@emotion/react'; import { hex2rgb } from '../helpers'; export interface RcSpinDotsProps { size?: string; color?: string; thickness?: string; time?: string; } export const RcSpinDots: React.FC = ({ size = '64px', color = '#236cd2', thickness, time = '0.6s', }) => { const f = `calc(${size} / 7)`; const d = thickness || `calc(${size} / 5)`; const { r, g, b } = hex2rgb(color); const cpt2 = `rgba(${r}, ${g}, ${b}, 0.2)`; const cpt5 = `rgba(${r}, ${g}, ${b}, 0.5)`; const cpt7 = `rgba(${r}, ${g}, ${b}, 0.7)`; const label = `spinner-${color.substr(1)}`; return (
); };