From eb0eb26f4cefa4880c895ff017f312e8674f9b73 Mon Sep 17 00:00:00 2001 From: karpathy Date: Sat, 22 Nov 2025 14:27:53 -0800 Subject: v0 --- frontend/src/components/Sidebar.jsx | 43 +++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 frontend/src/components/Sidebar.jsx (limited to 'frontend/src/components/Sidebar.jsx') diff --git a/frontend/src/components/Sidebar.jsx b/frontend/src/components/Sidebar.jsx new file mode 100644 index 0000000..c189690 --- /dev/null +++ b/frontend/src/components/Sidebar.jsx @@ -0,0 +1,43 @@ +import { useState, useEffect } from 'react'; +import './Sidebar.css'; + +export default function Sidebar({ + conversations, + currentConversationId, + onSelectConversation, + onNewConversation, +}) { + return ( +
+
+

LLM Council

+ +
+ +
+ {conversations.length === 0 ? ( +
No conversations yet
+ ) : ( + conversations.map((conv) => ( +
onSelectConversation(conv.id)} + > +
+ Conversation {conv.id.slice(0, 8)}... +
+
+ {conv.message_count} messages +
+
+ )) + )} +
+
+ ); +} -- cgit v1.2.3