portainer/app/react/kubernetes/services/ServicesView/ServicesDatatable/datatable-store.ts

14 lines
397 B
TypeScript
Raw Normal View History

import { refreshableSettings, createPersistedStore } from '@@/datatables/types';
import {
systemResourcesSettings,
TableSettings,
} from '../../../datatables/DefaultDatatableSettings';
export function createStore(storageKey: string) {
return createPersistedStore<TableSettings>(storageKey, 'name', (set) => ({
...refreshableSettings(set),
...systemResourcesSettings(set),
}));
}