import React, { ReactElement } from 'react' import styled from 'styled-components' import { DefaultInterface, ComponentResponsiveStyled } from "../../common/helpers/Theme" import { CustomComponent } from "../" interface H1Interface extends DefaultInterface { styles?: any } function H1Base(props: H1Interface): ReactElement { const { children } = props const newProps = Object.assign({}, {...props}) delete newProps.children delete newProps.themed delete newProps.native return (

{ children }

) } const Component: React.FunctionComponent = styled(H1Base)` ${ props => ComponentResponsiveStyled(props, 'h1') } text-align: left; ` export const H1: React.FunctionComponent = (h1Props): ReactElement => { const { native = false } = h1Props return !native ? } /> : }