"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports["default"] = void 0;
var _react = _interopRequireDefault(require("react"));
var _Text = _interopRequireDefault(require("../../Text"));
var _StringUtils = require("../../utils/StringUtils");
var _dataHooks = require("../dataHooks");
var _MarketingLayoutSt = require("../MarketingLayout.st.css.js");
var _jsxFileName = "/home/builduser/work/57e038ea7326c1ec/packages/wix-design-system/dist/cjs/MarketingLayout/components/Description.jsx",
  _this = void 0;
var Description = function Description(_ref) {
  var children = _ref.children,
    size = _ref.size;
  return /*#__PURE__*/_react["default"].createElement("div", {
    className: _MarketingLayoutSt.classes.description,
    __self: _this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 7,
      columnNumber: 3
    }
  }, (0, _StringUtils.isString)(children) ? /*#__PURE__*/_react["default"].createElement(_Text["default"], {
    dataHook: _dataHooks.MARKETING_LAYOUT_DESCRIPTION,
    size: size,
    secondary: true,
    __self: _this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 9,
      columnNumber: 7
    }
  }, children) : /*#__PURE__*/_react["default"].createElement("div", {
    "data-hook": _dataHooks.MARKETING_LAYOUT_DESCRIPTION,
    __self: _this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 13,
      columnNumber: 7
    }
  }, children));
};
var _default = exports["default"] = Description;