import type { RcRadioGroupProps } from '@ringcentral/juno'; import { RcFormControlLabel, RcRadio, RcRadioGroup } from '@ringcentral/juno'; import type { FunctionComponent } from 'react'; import React from 'react'; export type RadioFieldProps = { options: { label: any; value: string; disabled: boolean; }[]; value: string; } & RcRadioGroupProps; export const RadioField: FunctionComponent = ({ value, options, classes, onChange, }) => { return ( {options.map((item, i) => ( } label={item.label} disabled={item.disabled} classes={classes} /> ))} ); };