mirror of https://github.com/portainer/portainer
10 lines
296 B
TypeScript
10 lines
296 B
TypeScript
import { refreshableSettings, createPersistedStore } from '@@/datatables/types';
|
|
|
|
import { TableSettings } from './types';
|
|
|
|
export function createStore(storageKey: string) {
|
|
return createPersistedStore<TableSettings>(storageKey, 'created', (set) => ({
|
|
...refreshableSettings(set),
|
|
}));
|
|
}
|