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

export default async function RootPage() {
  const auth = await getAuthContext();
  redirect(auth ? "/dashboard" : "/login");
}
