import { useState } from 'react';
import { Redirect } from "react-router-dom";
import { Formik } from 'formik';
import * as Yup from 'yup';
import authApi from '../../apis/auth.api';
import catchErrors from "../../utils/catchErrors";
import styles from "./form.module.scss";
const SignupForm = () => {
const [success, setSuccess] = useState(false);
const [error, setError] = useState("");
if (success) {
return