Files
outline/frontend/stores/UiStore.js
2017-06-15 20:39:08 -07:00

19 lines
336 B
JavaScript

// @flow
import { observable, action } from 'mobx';
class UiStore {
@observable activeCollection: ?string;
/* Actions */
@action setActiveCollection = (id: string): void => {
this.activeCollection = id;
};
@action clearActiveCollection = (): void => {
this.activeCollection = null;
};
}
export default UiStore;