import { Loader, NoContent, BrowserIcon, OsIcon } from 'UI'; import { countries } from 'App/constants'; import { diffFromNowString } from 'App/date'; import { widgetHOC, SessionLine } from '../common'; @widgetHOC('sessionsFrustration', { fitContent: true }) export default class LastFeedbacks extends React.PureComponent { render() { const { data: sessions, loading } = this.props; return ( { sessions.map(({ startedAt, sessionId, clickRage, returningLocation, userBrowser, userOs, userCountry, }) => ( { clickRage ? "Click Rage" : "Returning Location" } } subInfo={ `${ diffFromNowString(startedAt) } ago - ${ countries[ userCountry ] || '' }` } /> ))} ); } }