import * as React from 'react' import { StyledDataBlock, StyledDataItem, StyledDataItemCounter, StyledDataItemText, StyledDataItemDescription } from './style' export interface DataProps { id?: string asList?: boolean children?: React.ReactNode } class DataBlock extends React.PureComponent { render () { const { id, asList, children } = this.props return ( {children} ) } } export interface DataItemTheme { counterColor?: string descriptionColor?: string userSelect?: string } export interface DataItemProps { id?: string counter?: string | number text?: string description?: string size?: 'medium' | 'small' onClick?: (e: any) => void customStyle?: DataItemTheme } class DataItem extends React.PureComponent { render () { const { id, customStyle, counter, text, description, onClick, size = 'medium' } = this.props return ( {counter} { text ? {text} : null } { description ? {description} : null } ) } } export { DataBlock, DataItem }