23 lines
607 B
TypeScript
23 lines
607 B
TypeScript
import { Layout } from 'antd';
|
|
import { ChatState } from '../../../interfaces/application-state';
|
|
import { OwncastLogo, UserDropdown } from '../../common';
|
|
import s from './Header.module.scss';
|
|
|
|
const { Header } = Layout;
|
|
|
|
interface Props {
|
|
name: string;
|
|
}
|
|
|
|
export default function HeaderComponent({ name = 'Your stream title' }: Props) {
|
|
return (
|
|
<Header className={`${s.header}`}>
|
|
<div className={`${s.logo}`}>
|
|
<OwncastLogo variant="contrast" />
|
|
<span>{name}</span>
|
|
</div>
|
|
<UserDropdown username="fillmein" chatState={ChatState.Available} />
|
|
</Header>
|
|
);
|
|
}
|