import { FC } from 'react' import Radio from './Radio' type Props = { items: { label: string value: string | boolean }[] selected: string | boolean onChange: (value: string | boolean) => void } const RadioGroup: FC = (props: Props) => { return (
{ props.items.map((item, index) => (
{item.label}
)) }
) } export default RadioGroup