import React from 'react'; import Table from './Table'; import { TableProps } from './interface'; import useModel from './../../use/useModel'; interface ModelTableProps extends TableProps { model: string; code: string } function ModelTable({ model, code, ...tableProps }: ModelTableProps) { const [columns = []] = useModel(model, [code]); return ( ) } export default ModelTable;