27 lines
622 B
TypeScript
27 lines
622 B
TypeScript
"use client";
|
|
|
|
import Login from "@/components/form/login";
|
|
import QudoLogin from "@/components/form/qudo-login";
|
|
import Cookies from "js-cookie";
|
|
import React, { useEffect, useState } from "react";
|
|
|
|
export default function AuthPage() {
|
|
// const isAuthenticated = Cookies.get("is_authenticated") || "false";
|
|
|
|
// console.log("isAuthenticated : ", isAuthenticated);
|
|
|
|
// const [hasMounted, setHasMounted] = useState(false);
|
|
|
|
// useEffect(() => {
|
|
// setHasMounted(true);
|
|
// }, []);
|
|
|
|
// // Render
|
|
// if (!hasMounted) return null;
|
|
|
|
return <Login />;
|
|
|
|
// isAuthenticated == "true" ?
|
|
// : <QudoLogin />;
|
|
}
|