"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;
var _react = _interopRequireDefault(require("react"));
var _icons = require("@ant-design/icons");
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
var Content = function Content(props) {
  var text = props.text,
    icon = props.icon,
    onClick = props.onClick;
  return /*#__PURE__*/_react["default"].createElement("span", {
    style: {
      cursor: 'pointer'
    },
    onClick: onClick
  }, /*#__PURE__*/_react["default"].createElement("span", {
    style: {
      marginRight: '5px'
    }
  }, text), icon);
};
var OpenArrow = function OpenArrow(props) {
  var open = props.open,
    openFun = props.openFun;
  return /*#__PURE__*/_react["default"].createElement("div", {
    className: "openArrow"
  }, open ? (/*#__PURE__*/_react["default"].createElement(Content, {
    onClick: openFun,
    text: "\u6536\u8D77",
    icon: /*#__PURE__*/_react["default"].createElement(_icons.UpOutlined, null)
  })) : (/*#__PURE__*/_react["default"].createElement(Content, {
    onClick: openFun,
    text: "\u5C55\u5F00",
    icon: /*#__PURE__*/_react["default"].createElement(_icons.DownOutlined, null)
  })));
};
var _default = exports["default"] = OpenArrow;
//# sourceMappingURL=OpenArrow.js.map
