/* * ============================================================================= * VibeQuant (vquant) — AI-Powered Financial Intelligence Platform * ----------------------------------------------------------------------------- * File: client/src/components/chat/conversation-history.tsx * * Author: Simon-Pierre Boucher * Contact: contact@spboucher.ai * Website: https://www.spboucher.ai * Demo: https://www.vquant.ai * License: MIT (see LICENSE) * * Copyright © 2026 Simon-Pierre Boucher. All rights reserved. * ============================================================================= */ import { Accordion, AccordionContent, AccordionItem, AccordionTrigger, } from "@/components/ui/accordion"; import { StreamingAnswer } from "@/components/streaming-answer"; interface ConversationMessage { question: string; answer: string; } interface ConversationHistoryProps { history: ConversationMessage[]; } export function ConversationHistory({ history }: ConversationHistoryProps) { if (history.length === 0) { return null; } return (
{history.map((message, index) => (
{index + 1}

{message.question}

Question:

{message.question}

Answer:
))}
); }