UNPKG

@wix/design-system

Version:

@wix/design-system

20 lines 914 B
import React from 'react'; 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.js'; 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, badge }) => (React.createElement("div", { className: classes.contentContainer }, React.createElement("div", null, badge, React.createElement(Title, { size: size }, title), React.createElement(Description, { size: descriptionSizeBySize[size] }, description)), React.createElement("div", { className: classes.actionsContainer }, actions))); export { Content }; //# sourceMappingURL=Content.js.map