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