import { redirect } from "next/navigation";
import { getSessionUser } from "@/lib/server/session";
import DashboardContent from "@/components/dashboard-content";

export default async function Page() {
  const user = await getSessionUser();
  if (!user) redirect("/login");

  return <DashboardContent />;
}
