import { FC } from 'react'; import TableRow from './token-table-row'; import TableHeadItem from './token-table-head-item'; import styles from './token-table.module.scss'; type TableBody = { id: string; items: string[]; }; type TokenTableProps = { theadData: string[]; tbodyData: TableBody[]; }; const TokenTable: FC = ({ theadData, tbodyData }) => (
{theadData.map(h => ( ))} {tbodyData.map(item => ( ))}
); export default TokenTable;