import { cn } from '../../utils'

interface RadioGroupIndicatorProps {
  error?: boolean
}

export const RadioGroupIndicator = ({
  error = false,
}: RadioGroupIndicatorProps) => {
  return (
    <div
      className={cn(
        'h-2 w-2 rounded-full',
        error ? 'bg-error-foreground' : 'bg-link',
        'group-disabled/radio:bg-input-muted-more-foreground',
      )}
    />
  )
}
