"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/defineProperty"));
var _react = _interopRequireDefault(require("react"));
class Menu extends _react.default.Component {
  constructor() {
    super(...arguments);
    (0, _defineProperty2.default)(this, "getStyle", () => {
      const {
        position
      } = this.props;
      const {
        width
      } = position;
      return {
        marginLeft: width - 10,
        marginTop: '30px'
      };
    });
  }
  render() {
    const style = this.getStyle();
    return /*#__PURE__*/_react.default.createElement("span", {
      className: "sf-menu-container",
      style: style
    }, this.props.children);
  }
}
var _default = exports.default = Menu;