aboutsummaryrefslogtreecommitdiffstats
path: root/packages/main/src/stores/RootStore.ts
blob: a9c1290f8b702d0b7363a9d270b4114e4a03a6fe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
import { Instance, types } from 'mobx-state-tree';
import { sharedStore } from '@sophie/shared';

export const rootStore = types.model('RootStore', {
  shared: sharedStore,
}).actions((self) => ({
  buttonClick() {
    self.shared.clickCount += 1;
  },
}));

export interface RootStore extends Instance<typeof rootStore> {}