import * as React from 'react'; import { FormControl, Radio, RadioGroup } from '@mui/joy'; import { FormLabelStart } from './FormLabelStart'; export type FormRadioOption = { value: T, label: string | React.JSX.Element, disabled?: boolean }; export const FormRadioControl = (props: { title: string | React.JSX.Element, description?: string | React.JSX.Element, tooltip?: string | React.JSX.Element, disabled?: boolean; options: FormRadioOption[]; value: TValue; onChange: (value: TValue) => void; }) => {(!!props.title || !!props.description) && } ) => event.target.value && props.onChange(event.target.value as TValue)} > {props.options.map((option) => , )} ;