import { Field, FieldProps } from 'formik' import * as React from 'react' import { Table as $Table } from 'antd' import { TableProps } from 'antd/lib/table/Table' // import { TableProps, WithStore } from 'antd/lib/table'; // RecordType extends object = any>(props: TableProps // declare function Table(props: TableProps): JSX.Element; export function Table({ name, ...restProps }: { name: string } & TableProps) { return ( {({ field }: FieldProps) => { return <$Table dataSource={field.value || []} {...restProps} /> }} ) } export default Table