export type StreamInfo = { live: boolean; title?: string; game?: string; viewers?: number; duration?: string; }; export default function LiveBanner({ stream }: { stream: StreamInfo }) { return (
{stream.live ? ( EN DIRECT ) : ( HORS LIGNE )} {stream.duration && ( {stream.duration} )}
{stream.title || "En attente du prochain stream..."}
{stream.game && (
🎮 {stream.game}
)}
{stream.viewers ?? 0}
VIEWERS
); }