import * as React from 'react';
import "./index.scss";
var BorderBox = function BorderBox(_ref) {
  var boxSlot = _ref.boxSlot,
    width = _ref.width,
    skin = _ref.skin,
    skinColor = _ref.skinColor,
    _ref$title = _ref.title,
    title = _ref$title === void 0 ? '请设置标题' : _ref$title,
    font = _ref.font,
    fontColor = _ref.fontColor,
    fontSize = _ref.fontSize,
    direction = _ref.direction,
    justify = _ref.justify,
    align = _ref.align;
  return /*#__PURE__*/React.createElement("div", {
    className: "border-box " + skin[1],
    style: {
      width: width + "%",
      backgroundColor: skin[0] === 1 ? skinColor || '#0003' : null
    }
  }, /*#__PURE__*/React.createElement("div", {
    className: "box-title",
    style: {
      color: fontColor,
      fontFamily: font,
      fontSize: fontSize
    }
  }, /*#__PURE__*/React.createElement("div", {
    className: "box-title-content"
  }, title)), /*#__PURE__*/React.createElement("div", {
    className: "box-slot-container",
    style: {
      flexDirection: direction,
      alignContent: align,
      alignItems: align,
      justifyContent: justify
    }
  }, boxSlot));
};
export default BorderBox;