mirror of https://github.com/portainer/portainer
14 lines
379 B
TypeScript
14 lines
379 B
TypeScript
![]() |
import { refreshableSettings, createPersistedStore } from '@@/datatables/types';
|
||
|
|
||
|
import {
|
||
|
systemResourcesSettings,
|
||
|
TableSettings,
|
||
![]() |
} from './DefaultDatatableSettings';
|
||
![]() |
|
||
|
export function createStore(storageKey: string) {
|
||
![]() |
return createPersistedStore<TableSettings>(storageKey, 'name', (set) => ({
|
||
![]() |
...refreshableSettings(set),
|
||
|
...systemResourcesSettings(set),
|
||
|
}));
|
||
|
}
|