umami/components/metrics/WebsiteHeader.js

23 lines
761 B
JavaScript
Raw Normal View History

import { Row, Column } from 'react-basics';
import Favicon from 'components/common/Favicon';
import OverflowText from 'components/common/OverflowText';
import PageHeader from 'components/layout/PageHeader';
2020-08-18 09:51:32 +02:00
import ActiveUsers from './ActiveUsers';
import styles from './WebsiteHeader.module.css';
export default function WebsiteHeader({ websiteId, title, domain }) {
2020-08-18 09:51:32 +02:00
return (
<PageHeader>
<Row>
<Column className={styles.title} variant="two">
<Favicon domain={domain} />
<OverflowText tooltipId={`${websiteId}-title`}>{title}</OverflowText>
</Column>
<Column className={styles.active} variant="two">
<ActiveUsers websiteId={websiteId} />
</Column>
</Row>
2020-08-18 09:51:32 +02:00
</PageHeader>
);
}