DocSpace-client/packages/common/store/InfoPanelStore.js

24 lines
365 B
JavaScript

import { makeAutoObservable } from "mobx";
class InfoPanelStore {
isVisible = false;
constructor() {
makeAutoObservable(this);
}
toggleIsVisible = () => {
this.isVisible = !this.isVisible;
};
setVisible = () => {
this.isVisible = true;
};
setIsVisible = (bool) => {
this.isVisible = bool;
};
}
export default InfoPanelStore;