import React from 'react'; import PropTypes from 'prop-types'; import mergeClassNames from 'classnames'; /** * A Box can display more important content in a simple manner. */ const Block = ({ className, children, ...rest }) => { const finalClassName = mergeClassNames({ 'boldrui-block': true, [className]: className && className.length, }); return (
{children}
); }; Block.propTypes = { /** * The children to render within the Box. */ children: PropTypes.node.isRequired, /** * An optional className of the Box. */ className: PropTypes.string, }; export default Block;