import * as React from 'react' ; import styled from "styled-components" ; import { Heading } from 'rebass/styled-components' ; interface IMastheadProps { className : string ; } const Masthead = ( { className , header , subheader } ) => { return ( < section className = { className } > < Heading fontSize = { [ 1 , 2 , 3 ] } > { subheader } < /Heading> < Heading fontSize = { [ 5 , 6 , 7 ] } > { header } < /Heading> < /section>); } ; const StyledMasthead = styled ( Masthead ) `
  padding:4rem;
` ; export default StyledMasthead ;