import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Connect } from 'amos-framework';
import { eventTopics } from './../consts';
import { parseLevelFilter,  parseBubbleMarkers } from '../dataProcessor';

const eventConnect = Connect.eventConnect;

/**
 * 规则消息接收层
 *
 * @class RulesLayer
 * @extends {Component}
 */
@eventConnect
class RulesLayer extends Component {

  componentDidMount() {
    // this.props.subscribe(eventTopics.fromws, (topic, data) => {
    //   if (topic === eventTopics.map_bubble) { // 监控屏气泡
    //     parseBubbleMarkers(this, data);
    //   }
    // });
  }

  render() {
    return <div className="rules-layer" />;
  }
}

RulesLayer.propTypes = {
  subscribe: PropTypes.func
};

export default RulesLayer;
