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, theme?: DataItemTheme } class DataItem extends React.PureComponent { render () { const { id, theme, counter, text, description, onClick, size = 'medium' } = this.props return ( {counter} { text && {text} } { description && {description} } ) } } export { DataBlock, DataItem }