UNPKG

wix-style-react

Version:
26 lines 994 B
import React from 'react'; import PropTypes from 'prop-types'; import Description from './Description'; import Title from './Title'; import { SIZES } from '../constants'; import { SIZES as TEXT_SIZES } from '../../Text'; import { classes } from '../MarketingLayout.st.css'; const descriptionSizeBySize = { [SIZES.tiny]: TEXT_SIZES.small, [SIZES.small]: TEXT_SIZES.small, [SIZES.medium]: TEXT_SIZES.medium, [SIZES.large]: TEXT_SIZES.medium, }; const Content = ({ size, actions, title, description }) => (React.createElement("div", { className: classes.contentContainer }, React.createElement("div", null, React.createElement(Title, { size: size }, title), React.createElement(Description, { size: descriptionSizeBySize[size] }, description)), actions)); Content.propTypes = { size: PropTypes.string, actions: PropTypes.node, title: PropTypes.node, description: PropTypes.node, }; export default Content; //# sourceMappingURL=Content.js.map