import { Icon, type IconProps } from '../../components/Icon.tsx'

export interface CircleIconProps extends IconProps {
  variant?: 'regular' | 'thin' | 'fill'
}

export function CircleIcon({ variant = 'regular', ...props }: CircleIconProps) {
  const src = (() => {
    switch (variant) {
      default:
      case 'regular':
        return <svg fill="currentColor" viewBox="0 0 256 256"><path d="M128 24a104 104 0 1 0 104 104A104.11 104.11 0 0 0 128 24m0 192a88 88 0 1 1 88-88 88.1 88.1 0 0 1-88 88" /></svg>
      case 'thin':
        return <svg fill="currentColor" viewBox="0 0 256 256"><path d="M128 28a100 100 0 1 0 100 100A100.11 100.11 0 0 0 128 28m0 192a92 92 0 1 1 92-92 92.1 92.1 0 0 1-92 92" /></svg>
      case 'fill':
        return <svg fill="currentColor" viewBox="0 0 256 256"><path d="M232 128A104 104 0 1 1 128 24a104.13 104.13 0 0 1 104 104" /></svg>
    }
  })()

  return <Icon src={src} data-name="Circle" {...props} />
}
