type Props = { content: string; speakerA: string; speakerB: string } export default function DebateView({ content, speakerA, speakerB }: Props) { if (!content) { return

Waiting for debate to complete…

} const turns = content.split(/\n{2,}/).filter(Boolean) return (
{turns.map((turn, i) => { const isA = i % 2 === 0 return (
{isA ? speakerA : speakerB}

{turn}

) })}
) }