import React, { Fragment } from 'react'; import styled from 'styled-components'; import { Card, H2, P, H4 } from '../'; import remcalc from 'remcalc'; 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'] { line-height: ${remcalc(26)}; font-size: ${remcalc(21)}; } `; 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}
); };