import { RadioGroup as MuiRadioGroup } from '@material-ui/core'; import { RadioGroupProps as MuiRadioGroupProps } from '@material-ui/core/RadioGroup'; import { Controller } from 'react-hook-form'; import React from 'react'; import { useFormContext } from 'react-hook-form'; import { BaseProps } from './props'; export interface RadioGroupProps extends BaseProps, Omit {} const RadioGroup = ({ name, rules, defaultValue, ...rest }: RadioGroupProps) => { const { control } = useFormContext(); return ( } /> ); }; export default RadioGroup;