index.js
507 Bytes
import { useRouter } from "next/router";
import { useEffect, useState } from "react";
import Layout from "../../../components/layout/Layout";
import Signup from "../../../components/signup/Signup";
export default function SignupPage () {
const router = useRouter();
const [signupType, setSignupType] = useState("");
useEffect(() => {
setSignupType(router?.query?.type)
}, [router])
return (
<Layout>
<Signup type={signupType} />
</Layout>
);
};