2022-12-09 08:43:43 +01:00
|
|
|
import { Row, Column } from 'react-basics';
|
2022-10-22 06:33:23 +02:00
|
|
|
import Favicon from 'components/common/Favicon';
|
2022-02-20 02:32:54 +01:00
|
|
|
import OverflowText from 'components/common/OverflowText';
|
2022-10-22 06:33:23 +02:00
|
|
|
import PageHeader from 'components/layout/PageHeader';
|
2020-08-18 09:51:32 +02:00
|
|
|
import ActiveUsers from './ActiveUsers';
|
|
|
|
import styles from './WebsiteHeader.module.css';
|
|
|
|
|
2022-12-09 08:43:43 +01:00
|
|
|
export default function WebsiteHeader({ websiteId, title, domain }) {
|
2020-08-18 09:51:32 +02:00
|
|
|
return (
|
2022-12-09 08:43:43 +01:00
|
|
|
<PageHeader>
|
|
|
|
<Row>
|
2022-12-10 23:26:52 +01:00
|
|
|
<Column className={styles.title} variant="two">
|
2022-12-09 08:43:43 +01:00
|
|
|
<Favicon domain={domain} />
|
|
|
|
<OverflowText tooltipId={`${websiteId}-title`}>{title}</OverflowText>
|
|
|
|
</Column>
|
2022-12-10 23:26:52 +01:00
|
|
|
<Column className={styles.active} variant="two">
|
2022-12-09 08:43:43 +01:00
|
|
|
<ActiveUsers websiteId={websiteId} />
|
|
|
|
</Column>
|
|
|
|
</Row>
|
2020-08-18 09:51:32 +02:00
|
|
|
</PageHeader>
|
|
|
|
);
|
|
|
|
}
|