'use client' import type { FC } from 'react' import React from 'react' import cn from 'classnames' import s from './style.module.css' type OPTION = { label: string value: any } type Props = { className?: string options: OPTION[] value: any onChange: (value: any) => void } const RadioGroup: FC = ({ className = '', options, value, onChange, }) => { return (
{options.map(item => (
onChange(item.value)} >
{item.label}
))}
) } export default React.memo(RadioGroup)