import React, { ReactElement } from 'react' import styled from 'styled-components' import { DefaultInterface } from "./../../common/helpers/Theme" import { CustomComponent } from "../" function ListBase(props: DefaultInterface): ReactElement { const { children, tag } = props const newProps = Object.assign({}, {...props}) delete newProps.children delete newProps.tag delete newProps.themed delete newProps.native if (tag === 'ol') { return (
    { children }
) } return ( ) } const Component: React.FunctionComponent = styled(ListBase)` font-family: ${ props => props.theme && `${props.theme.global.font.primary}, ${props.theme.global.font.secondary}` || 'Verdana, Tahoma, Arial, sans-serif' }; ` export const List: React.FunctionComponent = (listProps): ReactElement => { const { native = false } = listProps return !native ? } /> : }