import type { ReactNode } from "react"; import type { ConnectionPhase } from "../../lib/client"; export interface BannersProps { phase: ConnectionPhase; endedReason: string | null; onRejoin(): void; onNewLink(): void; } export function Banners({ phase, endedReason, onRejoin, onNewLink }: BannersProps): ReactNode { if (phase === "connecting" || phase === "waiting") { return (