2019-06-23 00:07:28 +00:00
|
|
|
import { createStore } from 'easy-peasy';
|
2019-07-10 04:25:57 +00:00
|
|
|
import flashes, { FlashStore } from '@/state/flashes';
|
|
|
|
import user, { UserStore } from '@/state/user';
|
2019-06-22 23:45:51 +00:00
|
|
|
|
2019-07-10 04:25:57 +00:00
|
|
|
export interface ApplicationStore {
|
|
|
|
flashes: FlashStore;
|
|
|
|
user: UserStore;
|
|
|
|
}
|
|
|
|
|
|
|
|
const state: ApplicationStore = {
|
2019-06-23 00:07:28 +00:00
|
|
|
flashes,
|
|
|
|
user,
|
2019-06-22 23:45:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export const store = createStore(state);
|