misc_pterodactyl-panel/resources/scripts/state/index.ts

19 lines
466 B
TypeScript
Raw Normal View History

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