mirror of
https://github.com/portainer/portainer.git
synced 2025-07-22 06:49:40 +02:00
11 lines
474 B
TypeScript
11 lines
474 B
TypeScript
import { TableSettings } from '@/react/kubernetes/datatables/DefaultDatatableSettings';
|
|
import { systemResourcesSettings } from '@/react/kubernetes/datatables/SystemResourcesSettings';
|
|
|
|
import { refreshableSettings, createPersistedStore } from '@@/datatables/types';
|
|
|
|
export function createStore(storageKey: string) {
|
|
return createPersistedStore<TableSettings>(storageKey, 'name', (set) => ({
|
|
...refreshableSettings(set),
|
|
...systemResourcesSettings(set),
|
|
}));
|
|
}
|