import { FormControl, FormLabel, Input } from '@chakra-ui/react'; import { __ } from '@wordpress/i18n'; import React from 'react'; import { useFormContext } from 'react-hook-form'; interface Props { defaultValue?: string; } const Title: React.FC = (props) => { const { defaultValue } = props; const { register, formState: { errors }, } = useFormContext(); return ( {__('Title', 'learning-management-system')} ); }; export default Title;