18 lines
466 B
TypeScript
18 lines
466 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';
|
|
|
|
export interface ApplicationStore {
|
|
permissions: GloablPermissionsStore;
|
|
flashes: FlashStore;
|
|
user: UserStore;
|
|
}
|
|
|
|
const state: ApplicationStore = {
|
|
permissions,
|
|
flashes,
|
|
user,
|
|
};
|
|
|
|
export const store = createStore(state);
|