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

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

export default User;
