import React from 'react'; import { FormattedMessage } from 'react-intl'; import PageHeader from '../layout/PageHeader'; import DropDown from '../common/DropDown'; import ActiveUsers from './ActiveUsers'; import MetricCard from './MetricCard'; import styles from './RealtimeHeader.module.css'; export default function RealtimeHeader({ websites, data, websiteId, onSelect }) { const options = [ { label: , value: 0 }, ].concat( websites.map(({ name, website_id }, index) => ({ label: name, value: website_id, divider: index === 0, })), ); const { pageviews, sessions, events, countries } = data; return ( <>
} value={pageviews.length} hideComparison /> } value={sessions.length} hideComparison /> } value={events.length} hideComparison /> } value={countries.length} hideComparison />
); }