refactor(component): rename component to match its filename (#432)

Co-authored-by: Thibault Sottiaux <tibo@openai.com>
This commit is contained in:
Abdelrhman Kamal Mahmoud Ali Slim
2025-04-20 22:21:49 -07:00
committed by GitHub
parent e3c8ce49ca
commit f97557f59f

View File

@@ -12,7 +12,7 @@ import React, { useMemo } from "react";
// items (e.g. autoapproved toolcall batches) that should be rendered
// together.
type BatchEntry = { item?: ResponseItem; group?: GroupedResponseItem };
type MessageHistoryProps = {
type TerminalMessageHistoryProps = {
batch: Array<BatchEntry>;
groupCounts: Record<string, number>;
items: Array<ResponseItem>;
@@ -25,7 +25,7 @@ type MessageHistoryProps = {
setOverlayMode: React.Dispatch<React.SetStateAction<OverlayModeType>>;
};
const MessageHistory: React.FC<MessageHistoryProps> = ({
const TerminalMessageHistory: React.FC<TerminalMessageHistoryProps> = ({
batch,
headerProps,
// `loading` and `thinkingSeconds` handled by input component now.
@@ -78,4 +78,4 @@ const MessageHistory: React.FC<MessageHistoryProps> = ({
);
};
export default React.memo(MessageHistory);
export default React.memo(TerminalMessageHistory);