import type { Channel } from '../types/messenger'; interface Props { channel: Channel; isConnected?: boolean; } export function ChannelHeader({ channel, isConnected }: Props) { return (

{channel.visibility === 'public' && #} {channel.visibility === 'private' && 🔒} {channel.name}

{channel.topic &&

{channel.topic}

}
{isConnected !== undefined && (
{isConnected ? 'Live' : 'Disconnected'}
)}
{channel.matrix_room_id}
); }