"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var _ContentSt = require("./Content.st.css.js");
var _jsxFileName = "/home/builduser/work/57e038ea7326c1ec/packages/wix-design-system/dist/cjs/Card/components/Content/Content.tsx";
var getChildName = children => {
  if (/*#__PURE__*/_react.default.isValidElement(children)) {
    if (typeof children.type === 'symbol') {
      return null;
    }
    if (typeof children.type !== 'string') {
      return 'displayName' in children.type && children.type.displayName || 'name' in children.type && children.type.name;
    }
  }
  return null;
};
var Content = props => {
  var {
    children,
    size = 'medium',
    dataHook
  } = props;
  var isEmptyStateContent = getChildName(children) === 'EmptyState';
  return /*#__PURE__*/_react.default.createElement("div", {
    "data-hook": dataHook,
    "data-size": size,
    className: (0, _ContentSt.st)(_ContentSt.classes.root, {
      size,
      emptyStateContent: isEmptyStateContent
    }),
    __self: void 0,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 26,
      columnNumber: 5
    }
  }, children);
};
Content.displayName = 'Card.Content';
var _default = exports.default = Content;
//# sourceMappingURL=Content.js.map