"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

exports.__esModule = true;
exports["default"] = void 0;

var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));

var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));

var _react = _interopRequireDefault(require("react"));

require("./index.scss");

var _excluded = ["title", "content", "flex", "children"];

var Panel = function Panel(_ref) {
  var title = _ref.title,
      content = _ref.content,
      _ref$flex = _ref.flex,
      flex = _ref$flex === void 0 ? 1 : _ref$flex,
      children = _ref.children,
      otherProps = (0, _objectWithoutPropertiesLoose2["default"])(_ref, _excluded);

  var _otherProps = otherProps || {}; // @ts-ignore


  _otherProps.style = otherProps.style || {};
  _otherProps.style.flex = flex;
  return /*#__PURE__*/_react["default"].createElement("div", (0, _extends2["default"])({
    className: 'panel'
  }, otherProps), /*#__PURE__*/_react["default"].createElement("div", {
    className: 'title'
  }, title || 'Panel标题'), /*#__PURE__*/_react["default"].createElement("div", {
    className: 'content'
  }, content || 'Panel内容'));
};

var _default = Panel;
exports["default"] = _default;