import classNames from 'classnames'; import debounce from 'lodash/debounce'; import { useFormContext } from 'react-hook-form'; interface InputOutlinedProps { className?: string; name: string; callback?: () => void; } const InputOutlined = ({ className, name, callback }: InputOutlinedProps) => { const inputClassName = classNames('input-outlined', className); const method = useFormContext(); const { onChange, ...rest } = method.register(name); const onTextChange = debounce((event) => { onChange(event); if (callback) { callback(); } }, 700); return ; }; InputOutlined.displayName = 'InputOutlined'; export default InputOutlined;