import { Radio as UIRadio, RadioProps } from '@gear-js/ui'; import { FieldValues, Path, PathValue, useFormContext } from 'react-hook-form'; type Props = Omit & { onSubmit: (values: T) => void; name: Path; value: PathValue>; }; const Radio = ({ name, value, label, className, onSubmit }: Props) => { const { register, handleSubmit } = useFormContext(); const onChange = () => handleSubmit(onSubmit)(); return ; }; export { Radio };