import { x } from '@xstyled/emotion'; import { Box } from '../lib/layout/Box'; export interface TableColumn { key: string; label: string; style?: string; } export interface TableCell { key: string; value: string; } export interface TableRow { cells: TableCell[]; classNames?: string; } export interface FinancialSheetTemplateProps { organizationName: string; sheetName?: string; sheetDate?: string; table: { columns: TableColumn[]; rows: TableRow[]; }; customCSS?: string; } export function FinancialSheetTemplate({ organizationName, sheetName, sheetDate, table, customCSS, }: FinancialSheetTemplateProps) { return ( {organizationName} {sheetName && {sheetName}} {sheetDate && {sheetDate}} {table.columns.map((column) => ( {column.label} ))} {table.rows.map((row, rowIndex) => ( {row.cells.map((cell) => ( ))} ))} ); }