import React, { ReactElement } from 'react' import styled from 'styled-components' import { DefaultInterface, ComponentResponsiveStyled } from "../../common/helpers/Theme" import { CustomComponent } from ".." interface H5Interface extends DefaultInterface { styles?: any } function H5Base(props: H5Interface): 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(H5Base)` ${ props => ComponentResponsiveStyled(props, 'h5') } text-align: left; ` export const H5: React.FunctionComponent = (h5Props): ReactElement => { const { native = false } = h5Props return !native ? } /> : }