mirror of
https://github.com/kremalicious/umami.git
synced 2024-12-24 18:26:20 +01:00
21 lines
730 B
JavaScript
21 lines
730 B
JavaScript
import { Row, Column } from 'react-basics';
|
|
import Favicon from 'components/common/Favicon';
|
|
import OverflowText from 'components/common/OverflowText';
|
|
import ActiveUsers from './ActiveUsers';
|
|
import styles from './WebsiteHeader.module.css';
|
|
|
|
export default function WebsiteHeader({ websiteId, title, domain, children }) {
|
|
return (
|
|
<Row className={styles.header} justifyContent="center">
|
|
<Column className={styles.title} variant="two">
|
|
<Favicon domain={domain} />
|
|
<OverflowText tooltipId={`${websiteId}-title`}>{title}</OverflowText>
|
|
</Column>
|
|
<Column className={styles.body} variant="two">
|
|
<ActiveUsers websiteId={websiteId} />
|
|
{children}
|
|
</Column>
|
|
</Row>
|
|
);
|
|
}
|