Add debug transcript components

This commit is contained in:
Xin Wang
2026-03-13 07:11:48 +08:00
parent def6a11338
commit d87d3616e9
7 changed files with 1096 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
import React from 'react';
import MessageText from './MessageText';
import MessageTool from './MessageTool';
import type { DebugTranscriptRow } from './types';
const TranscriptItem: React.FC<{
row: DebugTranscriptRow;
}> = ({ row }) => {
if (row.kind === 'tool') {
return <MessageTool row={row} />;
}
return <MessageText row={row} />;
};
export default React.memo(TranscriptItem);