'use client'; import { X } from 'lucide-react'; import type { ChatMessage } from '@shared/chat'; import { proxyImageUrl } from '../lib/imageProxy'; import { formatAmount } from '../lib/format'; import { MessageBody } from './MessageBody'; type Props = { selection: ChatMessage | null; onClear: () => void }; /** Mirrors what the OBS overlay is showing right now, so the operator never has to guess. */ export function OnAir({ selection, onClear }: Props) { return (
On air {selection ? ( <> {selection.authorPhoto && } {selection.author} {selection.superChat && ( {formatAmount(selection.superChat.amount, selection.superChat.currency)} )} ) : ( Nothing on the overlay. Click a message to show it, click again to hide it. )}
); }