import { classNames } from '@/shared/lib/classNames/classNames'; import cls from './RadioButtons.module.scss'; export enum RadioButtonsTheme { PARAM = 'param', } export interface IRadioButtons { labelName: string; value: string | number; } interface RadioButtonsProps { className?: string; name: string; title?: string; data: IRadioButtons[]; theme?: string; currentValue?: string | number; onChange?: (value: string) => void; } export const RadioButtons = (props: RadioButtonsProps) => { const { className, name, title, data, theme = '', currentValue, onChange } = props; return (
{title &&

{title}

}
{data.map((radioButton, index) => (
onChange?.(e.target.value)} />
))}
); };