import { flexRender, Table as Instance } from "@tanstack/react-table" import Table from "../../../../components/molecules/table" import { AdditionalItemObject } from "./index" type Props = { instance: Instance } export const AdditionalItemsTable = ({ instance }: Props) => { const { getHeaderGroups, getRowModel } = instance return (
{getHeaderGroups().map((headerGroup) => { return ( {headerGroup.headers.map((header) => { return ( {flexRender( header.column.columnDef.header, header.getContext() )} ) })} ) })} {getRowModel().rows.map((row) => { return ( {row.getVisibleCells().map((cell) => { return ( {flexRender( cell.column.columnDef.cell, cell.getContext() )} ) })} ) })}
) }