import { RadioProps, radioStyles } from '@gear-js/ui'; import clsx from 'clsx'; import { FieldValues, Path, PathValue, useFormContext } from 'react-hook-form'; import { BulbBlock, BulbStatus } from '@/shared/ui/bulbBlock'; type Props = Omit & { onSubmit: (values: T) => void; name: Path; value: PathValue>; status: BulbStatus; }; const StatusRadio = ({ name, label, value, status, onSubmit }: Props) => { const { register, handleSubmit } = useFormContext(); const onChange = () => handleSubmit(onSubmit)(); return ( ); }; export { StatusRadio };