"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports["default"] = void 0;
var _react = _interopRequireDefault(require("react"));
require("./text-description-detail-list-item.scss");
/**
 * 数据
 */

var TextDescriptionDetailListItem = function TextDescriptionDetailListItem(_ref) {
  var label = _ref.label,
    value = _ref.value,
    labelPosition = _ref.labelPosition,
    onClick = _ref.onClick,
    children = _ref.children;
  return /*#__PURE__*/_react["default"].createElement("div", {
    className: "text-description-detail-list-item position-" + labelPosition,
    onClick: onClick
  }, labelPosition !== 'none' && /*#__PURE__*/_react["default"].createElement("span", {
    className: "item-label"
  }, label), /*#__PURE__*/_react["default"].createElement("span", {
    className: "item-value"
  }, value));
};
TextDescriptionDetailListItem.displayName = 'TextDescriptionDetailListItem';
var _default = exports["default"] = TextDescriptionDetailListItem;