import { OutputRender } from "./OutputRender"; import { CodeBlock } from "@/components/CodeBlock"; import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow, } from "@/components/ui/table"; import { getRunsOutput } from "@/server/getRunsOutput"; export async function RunOutputs({ run_id }: { run_id: string }) { const outputs = await getRunsOutput(run_id); return ( File Output {outputs?.map((run) => { const fileName = run.data.images?.[0].filename || run.data.files?.[0].filename || run.data.gifs?.[0].filename; if (!fileName) return ( Output ); // const filePath return ( {fileName} ); })}
); }