import React, { FC } from 'react'; import Button from '../../blocks/Button'; import Form from '../../blocks/Form'; import InputPassword from '../InputPassword'; import css from './index.module.css'; export interface FormCompleteRegisterValues { token: string; password: string; passwordConfirm: string; } export interface FormCompleteRegisterLabels { password: string; passwordConfirm: string; register: string; showPassword: string; hidePassword: string; } export interface FormCompleteRegisterErrors { password?: string; passwordConfirm?: string; } export interface FormCompleteRegisterTouched { [key: string]: unknown; } export interface FormCompleteRegisterProps { values: FormCompleteRegisterValues; touched: FormCompleteRegisterTouched; errors: FormCompleteRegisterErrors; labels: FormCompleteRegisterLabels; handleChange: (e) => void; handleBlur: (e) => void; handleSubmit: (e) => void; isSubmitting?: boolean; status?: { msg: string; }; } const FormCompleteRegister: FC = ({ values, touched, errors, handleChange, handleBlur, handleSubmit, labels, isSubmitting, status, }) => { return (
{status && status.msg && (
{status.msg}
)}
); }; export default FormCompleteRegister;