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