mirror of https://github.com/portainer/portainer
14 lines
397 B
TypeScript
14 lines
397 B
TypeScript
|
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),
|
||
|
}));
|
||
|
}
|