From eb0eb26f4cefa4880c895ff017f312e8674f9b73 Mon Sep 17 00:00:00 2001
From: karpathy <andrej.karpathy@gmail.com>
Date: Sat, 22 Nov 2025 14:27:53 -0800
Subject: v0

---
 frontend/src/components/Stage1.jsx | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)
 create mode 100644 frontend/src/components/Stage1.jsx

(limited to 'frontend/src/components/Stage1.jsx')

diff --git a/frontend/src/components/Stage1.jsx b/frontend/src/components/Stage1.jsx
new file mode 100644
index 0000000..071937c
--- /dev/null
+++ b/frontend/src/components/Stage1.jsx
@@ -0,0 +1,36 @@
+import { useState } from 'react';
+import ReactMarkdown from 'react-markdown';
+import './Stage1.css';
+
+export default function Stage1({ responses }) {
+  const [activeTab, setActiveTab] = useState(0);
+
+  if (!responses || responses.length === 0) {
+    return null;
+  }
+
+  return (
+    <div className="stage stage1">
+      <h3 className="stage-title">Stage 1: Individual Responses</h3>
+
+      <div className="tabs">
+        {responses.map((resp, index) => (
+          <button
+            key={index}
+            className={`tab ${activeTab === index ? 'active' : ''}`}
+            onClick={() => setActiveTab(index)}
+          >
+            {resp.model.split('/')[1] || resp.model}
+          </button>
+        ))}
+      </div>
+
+      <div className="tab-content">
+        <div className="model-name">{responses[activeTab].model}</div>
+        <div className="response-text markdown-content">
+          <ReactMarkdown>{responses[activeTab].response}</ReactMarkdown>
+        </div>
+      </div>
+    </div>
+  );
+}
-- 
cgit v1.2.3

