Pterodactyl-Panel/resources/scripts/state/index.ts

25 lines
672 B
TypeScript

import { createStore } from 'easy-peasy';
import flashes, { FlashStore } from '@/state/flashes';
import user, { UserStore } from '@/state/user';
import permissions, { GloablPermissionsStore } from '@/state/permissions';
import settings, { SettingsStore } from '@/state/settings';
import progress, { ProgressStore } from '@/state/progress';
export interface ApplicationStore {
permissions: GloablPermissionsStore;
flashes: FlashStore;
user: UserStore;
settings: SettingsStore;
progress: ProgressStore;
}
const state: ApplicationStore = {
permissions,
flashes,
user,
settings,
progress,
};
export const store = createStore(state);