import { Table } from "@components/Content/Table"; import { FormatterProps } from "../Format.types"; import { Key } from "react-stately"; type ValueRow = Record & { key: Key }; export interface FormatTableProps extends FormatterProps { columns: { key: Key; title: string }[]; } export function FormatTable(props: FormatTableProps) { const { columns, value } = props; return ( {(column) => ( {column.title} )} {(item) => ( {(column) => ( {item[column.key]} )} )}
); }