2023-02-24 11:41:02 +01:00
|
|
|
import { Row, Column, Text } from 'react-basics';
|
2022-10-22 06:33:23 +02:00
|
|
|
import Favicon from 'components/common/Favicon';
|
2020-08-18 09:51:32 +02:00
|
|
|
import ActiveUsers from './ActiveUsers';
|
|
|
|
import styles from './WebsiteHeader.module.css';
|
|
|
|
|
2023-03-31 14:55:28 +02:00
|
|
|
export default function WebsiteHeader({ websiteId, name, domain, children }) {
|
2020-08-18 09:51:32 +02:00
|
|
|
return (
|
2023-02-02 03:39:54 +01:00
|
|
|
<Row className={styles.header} justifyContent="center">
|
2023-04-10 05:22:28 +02:00
|
|
|
<Column className={styles.title} variant="two">
|
2023-02-02 03:39:54 +01:00
|
|
|
<Favicon domain={domain} />
|
2023-03-31 14:55:28 +02:00
|
|
|
<Text>{name}</Text>
|
2023-02-02 03:39:54 +01:00
|
|
|
</Column>
|
2023-04-10 05:22:28 +02:00
|
|
|
<Column className={styles.info} variant="two">
|
2023-02-02 03:39:54 +01:00
|
|
|
<ActiveUsers websiteId={websiteId} />
|
|
|
|
{children}
|
|
|
|
</Column>
|
|
|
|
</Row>
|
2020-08-18 09:51:32 +02:00
|
|
|
);
|
|
|
|
}
|