import { auth } from "@/lib/auth";
import { redirect } from "next/navigation";
import LoginClient from "@/components/LoginClient";

export default async function Login() {
    const session = await auth();

    if (session?.user) {
        redirect("/dashboard");
    }

    return <LoginClient />;
}
