import { Datatable as GenericDatatable } from '@@/datatables'; import { createPersistedStore } from '@@/datatables/types'; import { useTableState } from '@@/datatables/useTableState'; import { columns } from './columns'; import { Filter } from './Filter'; import { TableActions } from './TableActions'; import { useEnvironments } from './useEnvironments'; const storageKey = 'edge-devices-waiting-room'; const settingsStore = createPersistedStore(storageKey, 'name'); export function Datatable() { const tableState = useTableState(settingsStore, storageKey); const { data: environments, totalCount, isLoading, page, setPage, } = useEnvironments({ pageLimit: tableState.pageSize, search: tableState.search, }); return ( ( )} isLoading={isLoading} isServerSidePagination page={page} onPageChange={setPage} totalCount={totalCount} description={} /> ); }