import React from 'react' import './index.scss' interface Props { fieldName: string placeholder: string error: string onBlur?: (event: React.ChangeEvent) => void onChange?: (event: React.ChangeEvent) => void } const Fieldset = (props: Props) => { const fieldType = (['password', 'confirm_password'].includes(props.fieldName)) ? 'password' : 'text' return (
{ props.error.length > 0 &&

{props.error}

}
) } export default Fieldset