function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
import React from "react";
import { Tooltip } from "antd";
import { QuestionCircleOutlined } from "@ant-design/icons";
import "./index.less";
var Container = function Container(_ref) {
  var title = _ref.title,
    children = _ref.children,
    desc = _ref.desc,
    _ref$isMargin = _ref.isMargin,
    isMargin = _ref$isMargin === void 0 ? false : _ref$isMargin,
    hint = _ref.hint,
    hintProps = _ref.hintProps;
  return /*#__PURE__*/React.createElement("div", {
    className: "pisell2_product-extension-container"
  }, /*#__PURE__*/React.createElement("div", {
    className: "pisell2_product-extension-container-title-wrap"
  }, /*#__PURE__*/React.createElement("div", {
    className: "pisell2_product-extension-container-title"
  }, title), hint ? /*#__PURE__*/React.createElement(Tooltip, _extends({
    title: hint
  }, hintProps), /*#__PURE__*/React.createElement(QuestionCircleOutlined, {
    style: {
      marginLeft: 4,
      cursor: "pointer"
    }
  })) : null), children, /*#__PURE__*/React.createElement("div", {
    className: "pisell2_product-extension-container-desc",
    style: {
      marginBottom: isMargin ? "15px" : ""
    }
  }, desc));
};
export default Container;