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