const UIHeading = ({ children, subheading }) => {
if(subheading) {
return
{children}
;
}
return {children}
;
};
UIHeading.propTypes = {
children: React.PropTypes.node.isRequired,
subheading: React.PropTypes.bool
};
UIHeading.defaultProps = {
subheading: false
};