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