import * as React from 'react'; import { Statistic, SemanticCOLORS } from 'semantic-ui-react'; interface SingleNumberProps { value: number; label: string; horizontal?: boolean; color?: SemanticCOLORS; size?: 'mini' | 'tiny' | 'small' | 'large' | 'huge'; } class SingleNumber extends React.Component { render() { const props = this.props; return ( { props.value.toLocaleString( undefined, { minimumFractionDigits: 0 } ) } {props.label} ); } } export { SingleNumberProps, SingleNumber };