From c6bca6449980d26cd0478d602ae8ad7104bd43ad Mon Sep 17 00:00:00 2001
From: Brandon Keiji <brandonkeiji@google.com>
Date: Thu, 15 May 2025 16:12:15 +0000
Subject: refactor: remove unused props clearItems, openThemeDialog, onSubmit
 (#357)

---
 packages/cli/src/ui/components/HistoryItemDisplay.tsx | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

(limited to 'packages/cli/src/ui/components/HistoryItemDisplay.tsx')

diff --git a/packages/cli/src/ui/components/HistoryItemDisplay.tsx b/packages/cli/src/ui/components/HistoryItemDisplay.tsx
index 5fb9b32f..0c724feb 100644
--- a/packages/cli/src/ui/components/HistoryItemDisplay.tsx
+++ b/packages/cli/src/ui/components/HistoryItemDisplay.tsx
@@ -11,18 +11,15 @@ import { GeminiMessage } from './messages/GeminiMessage.js';
 import { InfoMessage } from './messages/InfoMessage.js';
 import { ErrorMessage } from './messages/ErrorMessage.js';
 import { ToolGroupMessage } from './messages/ToolGroupMessage.js';
-import { PartListUnion } from '@google/genai';
 import { GeminiMessageContent } from './messages/GeminiMessageContent.js';
 import { Box } from 'ink';
 
 interface HistoryItemDisplayProps {
   item: HistoryItem;
-  onSubmit: (value: PartListUnion) => void;
 }
 
 export const HistoryItemDisplay: React.FC<HistoryItemDisplayProps> = ({
   item,
-  onSubmit,
 }) => (
   <Box flexDirection="column" key={item.id}>
     {/* Render standard message types */}
@@ -34,11 +31,7 @@ export const HistoryItemDisplay: React.FC<HistoryItemDisplayProps> = ({
     {item.type === 'info' && <InfoMessage text={item.text} />}
     {item.type === 'error' && <ErrorMessage text={item.text} />}
     {item.type === 'tool_group' && (
-      <ToolGroupMessage
-        toolCalls={item.tools}
-        groupId={item.id}
-        onSubmit={onSubmit}
-      />
+      <ToolGroupMessage toolCalls={item.tools} groupId={item.id} />
     )}
   </Box>
 );
-- 
cgit v1.2.3

