import React, { ReactElement } from 'react' import styled from 'styled-components' import { DefaultInterface, ComponentResponsiveStyled } from "./../../common/helpers/Theme" import { CustomComponent } from "../" interface HeaderInterface extends DefaultInterface { styles?: any } function HeaderBase(props: HeaderInterface): 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(HeaderBase)` ${ props => ComponentResponsiveStyled(props, 'header') } ` export const Header: React.FunctionComponent = (headerProps): ReactElement => { const { native = false } = headerProps return !native ? } /> : }