import React from 'react' import styles from './ModalRadioGroup.module.css' interface RadioOption { value: string label: string icon?: React.ReactNode } interface Props { label?: string helpIcon?: React.ReactNode options: RadioOption[] value: string onChange: (value: string) => void name: string className?: string } const ModalRadioGroup: React.FC = ({ label, helpIcon, options, value, onChange, name, className = '' }) => { return (
{label && (
{helpIcon && ( )}
)}
{options.map((option) => ( ))}
) } export default ModalRadioGroup