import { Table, TableBody, TableCaption, TableHead, TableHeader, TableRow, } from "@/components/ui/table"; import { headers } from "next/headers"; import { findAllDeployments } from "../server/findAllRuns"; import { DeploymentDisplay } from "./DeploymentDisplay"; export async function DeploymentsTable(props: { workflow_id: string }) { const allRuns = await findAllDeployments(props.workflow_id); const headersList = headers(); const host = headersList.get("host") || ""; const protocol = headersList.get("x-forwarded-proto") || ""; const domain = `${protocol}://${host}`; return (
A list of your deployments Environment Version Machine Updated At {allRuns.map((run) => ( ))}
); }