Markdown rendered, CSV/TSV as a table, images, PDFs, audio, video and sandboxed HTML in place, other text as code, with Download and Open in a new tab. Used by file chips, message attachments, the files modal, task files and the files browser. Co-Authored-By: Claude Opus 5.5 <[email protected]>
20 lines
427 B
TypeScript
20 lines
427 B
TypeScript
import FilePreviewTableCell from "./file-preview-table-cell";
|
|
|
|
type Props = {
|
|
cells: string[];
|
|
header?: boolean;
|
|
};
|
|
|
|
/**
|
|
* One row of a previewed CSV.
|
|
*/
|
|
export default function FilePreviewTableRow({ cells, header }: Props) {
|
|
return (
|
|
<tr>
|
|
{cells.map((value, index) => (
|
|
<FilePreviewTableCell key={index} value={value} header={header} />
|
|
))}
|
|
</tr>
|
|
);
|
|
}
|