import { DashboardProjectsSection } from "@/components/dashboard/DashboardProjectsSection";
import { listSavedProjects } from "@/lib/api/saved-projects";

export async function DashboardProjectsContent() {
  // V2: user-saved projects come from the Studio service via the gateway,
  // authenticated with the caller's access-token cookie. Degrades to an empty
  // grid when signed out or the service is unreachable.
  const projects = await listSavedProjects({ pageSize: 100 });

  return <DashboardProjectsSection projects={projects} />;
}
