UNPKG

ndla-ui

Version:

UI component library for NDLA.

43 lines (37 loc) 969 B
import React from 'react'; import PropTypes from 'prop-types'; import BEMHelper from 'react-bem-helper'; import { SubjectSectionTitle } from './Subject'; var classes = BEMHelper('c-subject-social'); export var SubjectSocialContent = function SubjectSocialContent(_ref) { var children = _ref.children; return React.createElement( 'div', classes('content'), children ); }; SubjectSocialContent.propTypes = { children: PropTypes.node.isRequired }; export var SubjectSocialSection = function SubjectSocialSection(_ref2) { var children = _ref2.children, title = _ref2.title; return React.createElement( 'section', classes('section'), React.createElement( SubjectSectionTitle, { className: classes('title').className }, title ), children ); }; SubjectSocialSection.propTypes = { children: PropTypes.node.isRequired, title: PropTypes.string }; SubjectSocialSection.defaultProps = { title: '' };