import React from 'react'; import { Card, CardHeader, CardTitle } from '@/components/ui/card'; import { Badge } from '@/components/ui/badge'; import { Button } from '@/components/ui/button'; import { MessageCircle, Wifi, WifiOff, Users, Settings, Hash } from 'lucide-react'; import type { ChatStats } from '@/types'; interface ChatInterfaceHeaderProps { room: string; isConnected: boolean; chatStats: ChatStats | null; } export function ChatInterfaceHeader({ room, isConnected, chatStats, }: ChatInterfaceHeaderProps) { return (
{room}
{isConnected ? ( <> Connecté ) : ( <> Déconnecté )}
{chatStats && (
{chatStats.active_users ?? 0}
{chatStats.total_messages ?? 0}
)}
); }