import { Table as ChakraTable, TableContainer, Tbody, Td, Th, Thead, Tr, } from '@chakra-ui/react' type Props = { headers: string[] rows: string[][] } export const Table = ({ headers, rows }: Props) => ( {headers.map((header, index) => ( {header} ))} {rows.map((row, index) => ( {row.map((cell, cellIndex) => ( {cell} ))} ))} )