import React from 'react' export type RadioOption = { value: T label: string description?: string } type RadioButtonSettingProps = { id: string options: Array> value: T | undefined onChange: (value: T) => void } export default function RadioButtonSetting({ id, options, value, onChange, }: RadioButtonSettingProps) { const handleChange = (event: React.ChangeEvent) => { onChange(event.target.value as T) } return (
{options.map(option => ( ))}
) }