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