import { redirect } from "next/navigation";

import { AuthEntry } from "@/components/auth-entry";
import { getCurrentMockSession } from "@/lib/mock-session";

export default async function Home() {
  const session = await getCurrentMockSession();

  if (session) {
    redirect("/dashboard");
  }

  return <AuthEntry />;
}
