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

{props.error}

}
) }) export default Fieldset