import { TasksClient } from "@/components/tasks-client";
import { listFleetAgents } from "@/lib/agents";
import { listTasks } from "@/lib/tasks";

export const dynamic = "force-dynamic";

export default async function TasksPage() {
  const [tasks, agents] = await Promise.all([listTasks(), listFleetAgents()]);
  return <TasksClient initialTasks={tasks} agents={agents} />;
}
