import React , { FC } from 'react' ; import { useFormContext } from 'react-hook-form' ; import ReactHookFormTextFieldMemo from './RHookFormTextFieldMemo' ; interface ReactHookFormTextFieldContainerProps { name : string ; label : string ; } const ReactHookFormTextFieldContainer = ( { name , label , } ) => { const methods = useFormContext ( ) ; return < ReactHookFormTextFieldMemo methods = { methods } label = { label } name = { name } / > ; } ; export default ReactHookFormTextFieldContainer ;