"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});

var _react = require("react");

var _react2 = _interopRequireDefault(_react);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

class PluginWrap extends _react.Component {
  constructor(...args) {
    var _temp;

    return _temp = super(...args), this.shouldComponentUpdate = (nextProps, nextState) => {
      return this.props.plugin.timestamp !== nextProps.plugin.timestamp;
    }, _temp;
  }

  render() {
    const { plugin } = this.props;
    return _react2.default.createElement(
      "div",
      { id: plugin.id, className: "poi-app-tabpane poi-plugin" },
      _react2.default.createElement(plugin.reactClass)
    );
  }
}

exports.default = PluginWrap;
module.exports = exports["default"];