function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

import React from 'react';
import classNames from 'classnames';
var prefixCls = 'pxx-descriptions';

var Descriptions = function Descriptions(props) {
  var _classNames;

  var _props$isHorizontal = props.isHorizontal,
      isHorizontal = _props$isHorizontal === void 0 ? false : _props$isHorizontal,
      style = props.style;
  return /*#__PURE__*/React.createElement("div", {
    style: style,
    className: classNames("".concat(prefixCls, "-wrapper"), (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-descriptions-horizontal"), isHorizontal), _defineProperty(_classNames, "".concat(prefixCls, "-descriptions-vertical"), !isHorizontal), _classNames))
  }, props.children);
};

export var Item = function Item(props) {
  var label = props.label,
      children = props.children;
  return /*#__PURE__*/React.createElement("div", {
    className: "".concat(prefixCls, "-description")
  }, /*#__PURE__*/React.createElement("div", {
    className: "".concat(prefixCls, "-label")
  }, label, "\uFF1A"), /*#__PURE__*/React.createElement("div", {
    className: "".concat(prefixCls, "-value")
  }, children));
};
Descriptions.Item = Item; // @ts-ignore

export default Descriptions;