import React, { Fragment } from 'react'; import styled from 'styled-components'; import { Card, H2, P, H4 } from '../'; import remcalc from 'remcalc'; const CardStyled = styled(Card)` margin-bottom: ${remcalc(36)}; `; const Header = styled.header` background: ${props => props.theme.primary}; padding: ${remcalc(50)} ${remcalc(120)}; position: relative; `; const Main = styled.div` padding: ${remcalc(50)} ${remcalc(120)}; h4[class*='rsg--heading'] { margin: 0; line-height: ${remcalc(26)}; font-size: ${remcalc(21)}; & + p { margin-top: ${remcalc(24)}; } } `; export default allProps => { const { name, content, components, sections, depth, description } = allProps; if (depth === 1) { return ( {name} {description ? {description} : null} {content} {components} {sections} ); } return ( {name} {description ? {description} : null} {content} {components} {sections} ); };
{description}