"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;

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

var _classnames = _interopRequireDefault(require("classnames"));

require("./index.css");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

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; }

var precls = 'regulation-setting-item';

var RegulationSettingItem = function RegulationSettingItem(props) {
  var label = props.label,
      children = props.children,
      _props$text = props.text,
      text = _props$text === void 0 ? false : _props$text,
      className = props.className,
      nofirst = props.nofirst;
  return /*#__PURE__*/_react["default"].createElement("div", {
    className: (0, _classnames["default"])("".concat(precls), className, _defineProperty({}, "".concat(precls, "__text"), text), _defineProperty({}, "".concat(precls, "__nofirst"), nofirst))
  }, /*#__PURE__*/_react["default"].createElement("div", {
    className: "".concat(precls, "__label")
  }, label), /*#__PURE__*/_react["default"].createElement("div", {
    className: "".concat(precls, "__content")
  }, children));
};

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