import React from 'react';
import { TableProvider } from '../../providers';
import { CollectionCard } from '../CollectionCard';
import { NestedTableWSRTable } from './NestedTableWSRTable';
import { observer } from 'mobx-react-lite';
import { minimalRequiredWdsRuntimeCheck } from '../../minimalRequiredWdsRuntimeCheck';
function _NestedTable(props) {
    const { state, dataHook } = props;
    const { toolbar } = state;
    if (process.env.NODE_ENV !== 'production') {
        minimalRequiredWdsRuntimeCheck({
            required: '^1.64.1',
            requiredBy: 'WixPatterns/NestedTable',
        });
    }
    return (React.createElement(CollectionCard, { errorState: false, state: toolbar, dataHook: dataHook },
        React.createElement(TableProvider, { value: state.tableState },
            React.createElement(NestedTableWSRTable, { ...props }))));
}
export const NestedTable = observer(_NestedTable);
//# sourceMappingURL=NestedTable.js.map