2022-04-28 18:54:33 +02:00
|
|
|
import { Layout } from 'antd';
|
2022-05-08 10:45:45 +02:00
|
|
|
import { OwncastLogo, UserDropdown } from '../../common';
|
2022-04-28 23:36:05 +02:00
|
|
|
import s from './Header.module.scss';
|
2022-04-28 18:54:33 +02:00
|
|
|
|
|
|
|
const { Header } = Layout;
|
|
|
|
|
2022-05-08 09:41:47 +02:00
|
|
|
interface Props {
|
|
|
|
name: string;
|
|
|
|
}
|
2022-04-28 18:54:33 +02:00
|
|
|
|
2022-05-08 09:41:47 +02:00
|
|
|
export default function HeaderComponent({ name = 'Your stream title' }: Props) {
|
2022-04-28 18:54:33 +02:00
|
|
|
return (
|
|
|
|
<Header className={`${s.header}`}>
|
2022-05-08 09:41:47 +02:00
|
|
|
<div className={`${s.logo}`}>
|
2022-05-08 10:45:45 +02:00
|
|
|
<OwncastLogo variant='contrast'/>
|
2022-05-08 09:41:47 +02:00
|
|
|
<span>{name}</span>
|
|
|
|
</div>
|
2022-04-28 23:36:05 +02:00
|
|
|
<UserDropdown />
|
2022-04-28 18:54:33 +02:00
|
|
|
</Header>
|
|
|
|
);
|
|
|
|
}
|