import { Layout, Tag, Tooltip } from 'antd'; import { FC } from 'react'; import cn from 'classnames'; import { UserDropdown } from '../../common/UserDropdown/UserDropdown'; import { OwncastLogo } from '../../common/OwncastLogo/OwncastLogo'; import styles from './Header.module.scss'; const { Header: AntHeader } = Layout; export type HeaderComponentProps = { name: string; chatAvailable: boolean; chatDisabled: boolean; }; export const Header: FC = ({ name = 'Your stream title', chatAvailable, chatDisabled, }) => (

{name}

{chatAvailable && !chatDisabled && } {!chatAvailable && !chatDisabled && ( Chat offline )}
); export default Header;