import {FC} from 'react';
import {context, contextState, pageContext, searchContext} from './context';
import {PageProvider, SearchProvider, TableSearchProvider} from '@components';
import Filter from './filter';
import TableList from './table';

const PdaMenu: FC = function () {
  return (
    <TableSearchProvider context={context} state={contextState}>
      <SearchProvider context={searchContext}>
        <PageProvider context={pageContext}>
          <main className='content-main'>
            <Filter />
            <TableList />
          </main>
        </PageProvider>
      </SearchProvider>
    </TableSearchProvider>
  );
};

export default PdaMenu;
