import { redirect } from "next/navigation";
import { getEvaluations } from "@/lib/server-data";
import { DashboardClient } from "@/components/DashboardClient";

export default async function DashboardPage() {
  const evaluations = await getEvaluations();
  if (!evaluations) redirect("/auth/login");

  return <DashboardClient evaluations={evaluations} />;
}
