text: import { observable, action } from 'mobx';
  
  class OverallUserCard {
      @observable show = false;
      @observable isMyFriend = false;
      @observable user={};
      @observable config={top:30,left:30};
  
      @action toggle(show = self.show, user = self.user, config = self.config, isMyFriend = self.isMyFriend) {
          self.show = show;
          self.user = user;
          self.config = config;
          self.isMyFriend = isMyFriend;
      }
      @action onUserInfoUpdate(user){
          if(self.user && self.user.uid === user.uid){
              self.user = user;
          }
      }
  }
  
  const self = new OverallUserCard();
  export default self;
  