import * as React from 'react'; interface Props { readonly type: string; readonly name: string; readonly label: string; readonly error: any; readonly options?: string[]; readonly register: any; readonly placeholder?: string; } export const Field: React.FunctionComponent = ({ type, name, label, error, options, register, placeholder }: Props) => (
{error &&

{error.message}

}
{type === 'select' ? ( ) : type === 'textarea' ? ( ) : ( )}
); export default Field;