import React from "react"; import { DataTable, Table, TableCell, TableContainer, TableBody, TableHead, TableHeader, TableRow, } from "@carbon/react"; import styles from "./E-table.scss"; import { LazyCell } from "../lazy-cell/lazy-cell.component"; interface TableProps { tableHeaders: any; tableRows: any; } export const ETable: React.FC = ({ tableHeaders, tableRows }) => { return ( {({ rows, headers, getHeaderProps, getTableProps }) => ( {headers.map((header) => ( {header.header?.content ?? header.header} ))} {rows.map((row) => ( {row.cells.map((cell) => ( ))} ))}
)}
); };