import React, { useEffect, useState } from 'react'; import { observer } from 'mobx-react-lite'; import { CollectionPagination } from '../CollectionPagination'; import { CollectionState, FiltersMap } from '@wix/bex-core'; import { CollectionTable, CollectionTableProps } from '../CollectionTable'; import { TableState } from '../../state'; import { useWixPatternsContainer } from '@wix/bex-core/react'; export interface PaginationTableProps extends Omit, 'state'> { state: CollectionState; } export function _PaginationTable( props: PaginationTableProps, ) { const { state: collection, cardProps, ...rest } = props; const container = useWixPatternsContainer(); const [state] = useState( () => new TableState({ collection, container, }), ); useEffect( () => state.init({ featuresInitializers: [], }), [], ); return ( <> ); } export const PaginationTable = observer(_PaginationTable);