import { observable, action } from 'mobx';

class KianseSearch {
  @observable drugSearchParams = {}; //kinase drug 搜索参数
  @observable targetSearchParams = {}; //kinase target 搜索参数
  @observable ligandSearchParams = {}; //kinase ligand 搜索参数
  @observable indicationSearchParams = {}; //kinase indication 搜索参数
  @observable activeKinaseTabKey = ''; //记录选中的tab

  @action addDrugSearchParams(data) {
    this.drugSearchParams = data;
  }
  @action addTargetSearchParams(data) {
    this.targetSearchParams = data;
  }
  @action addLigandSearchParams(data) {
    this.ligandSearchParams = data;
  }
  @action addIndicationSearchParams(data) {
    this.indicationSearchParams = data;
  }

  @action setActiveKinaseTabKey = (key) => {
    console.log('key----', key);
    this.activeTabKey = key;
  };
}

export default new KianseSearch();
