mirror of
https://github.com/portainer/portainer.git
synced 2025-08-06 06:15:22 +02:00
20 lines
534 B
TypeScript
20 lines
534 B
TypeScript
import {
|
|
refreshableSettings,
|
|
createPersistedStore,
|
|
BasicTableSettings,
|
|
RefreshableTableSettings,
|
|
BackendPaginationTableSettings,
|
|
backendPaginationSettings,
|
|
} from '@@/datatables/types';
|
|
|
|
interface TableSettings
|
|
extends BasicTableSettings,
|
|
RefreshableTableSettings,
|
|
BackendPaginationTableSettings {}
|
|
|
|
export function createStore(storageKey: string) {
|
|
return createPersistedStore<TableSettings>(storageKey, undefined, (set) => ({
|
|
...refreshableSettings(set),
|
|
...backendPaginationSettings(set),
|
|
}));
|
|
}
|