"use client"; import Image from "next/image" import Link from "next/link" import { useEffect } from "react"; import { useRouter } from "next/navigation"; import axios from "axios"; export default function Login() { const router = useRouter(); useEffect(() => { const init = async () => { const response = await axios.get("/api/user/init"); if (response.data.message === "No users found") { router.push("/setup"); } }; init(); }, []); return (
Please login with your account