import React from 'react'; import s from './forminput.scss'; import { Form } from 'semantic-ui-react'; import { FieldError } from 'react-hook-form'; interface IProps { label?: string; inline?: boolean; error?: FieldError; inputRef: React.LegacyRef; [k: string]: any; } const FormInput = ({ inputRef, label = '', inline = false, error, ...props }: IProps): JSX.Element => { return ( {label && } {!!error &&
{error.message}
}
); }; export default FormInput;