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

export const dynamic = "force-dynamic";

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