/** @jsxImportSource @emotion/react */ import { css } from '@emotion/react'; export interface RcProgressProps { progress: number; color?: string; backgroundColor?: string; borderColor?: string; barColor?: string; borderRadius?: string; } export const RcProgress: React.FC = ({ progress, color = '#ffffff', backgroundColor = '#e5e5e5', borderColor, barColor = '#4d50c6', borderRadius = '300px', }) => { const p = progress || 0; const width = p < 0 ? 0 : p > 100 ? 100 : p; return (
{width > 3 && `${width}%`}
); };