diff --git a/src/components/ChatWindow.tsx b/src/components/ChatWindow.tsx index d03f918..a1f6077 100644 --- a/src/components/ChatWindow.tsx +++ b/src/components/ChatWindow.tsx @@ -33,6 +33,7 @@ export type Message = { message: string; current: number; total: number; + subMessage?: string; }; }; @@ -279,6 +280,7 @@ const ChatWindow = ({ id }: { id?: string }) => { message: string; current: number; total: number; + subMessage?: string; } | null>(null); const [chatHistory, setChatHistory] = useState<[string, string][]>([]); diff --git a/src/components/MessageBoxLoading.tsx b/src/components/MessageBoxLoading.tsx index 51396a8..688f431 100644 --- a/src/components/MessageBoxLoading.tsx +++ b/src/components/MessageBoxLoading.tsx @@ -3,6 +3,7 @@ interface MessageBoxLoadingProps { message: string; current: number; total: number; + subMessage?: string; } | null; } @@ -12,12 +13,22 @@ const MessageBoxLoading = ({ progress }: MessageBoxLoadingProps) => { {progress && progress.current !== progress.total ? (
+
{progress.message}
+ {progress.subMessage && ( ++ {progress.subMessage} +
+ )}