import React from 'react'; import { ResponsiveContainer, AreaChart, XAxis, YAxis, CartesianGrid, Area } from 'recharts'; import { Loader } from 'UI'; import { CountBadge, domain, widgetHOC, Styles } from './common'; @widgetHOC('sessions', { trendChart: true, fitContent: true }) export default class ProcessedSessions extends React.PureComponent { render() { const { data, loading } = this.props; const isMoreThanK = data.count > 1000; const countView = isMoreThanK ? Math.trunc(data.count / 1000) : data.count; return (