portainer/app/react/nomad/jobs/JobsView/JobsDatatable/datatable-store.ts

10 lines
296 B
TypeScript
Raw Normal View History

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