import { Tag } from 'antd'; import { FC } from 'react'; import cn from 'classnames'; import dynamic from 'next/dynamic'; import { OwncastLogo } from '../../common/OwncastLogo/OwncastLogo'; import styles from './Header.module.scss'; // Lazy loaded components const UserDropdown = dynamic(() => import('../../common/UserDropdown/UserDropdown').then(mod => mod.UserDropdown), ); const Tooltip = dynamic(() => import('antd').then(mod => mod.Tooltip), { ssr: false, }); 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;