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