import React from 'react'; /** * Phase-by-phase summary of the conversation rendered as a table. * Question on top, final group opinion under it, one row per * participant with first / contribution / revised / final columns. * * Driven by the GET /api/chat/{id}/table endpoint - so this component * just renders the JSON response. */ export default function ChatTableView({ data, onClose, onExportCsv }) { if (!data) return null; return (
| Participant | First opinion | Conversation contribution | Revised opinion | Final opinion |
|---|---|---|---|---|
|
{row.name}
{row.model_display}
|
{row.first_opinion} | {row.contribution_summary || (no summary)} | {row.revised_opinion} | {row.final_opinion} |