UNPKG

wix-style-react

Version:
26 lines (24 loc) 832 B
import React from 'react'; import Text from '../../Text'; import { isString } from '../../utils/StringUtils'; import { MARKETING_LAYOUT_DESCRIPTION } from '../dataHooks'; import { classes } from '../MarketingLayout.st.css'; import PropTypes from 'prop-types'; var Description = function Description(_ref) { var children = _ref.children, size = _ref.size; return /*#__PURE__*/React.createElement("div", { className: classes.description }, isString(children) ? /*#__PURE__*/React.createElement(Text, { dataHook: MARKETING_LAYOUT_DESCRIPTION, size: size, secondary: true }, children) : /*#__PURE__*/React.createElement("div", { "data-hook": MARKETING_LAYOUT_DESCRIPTION }, children)); }; Description.propTypes = { children: PropTypes.node, size: PropTypes.string }; export default Description;