diff --git a/components/ClientPortal.tsx b/components/ClientPortal.tsx index de94550..03225f4 100644 --- a/components/ClientPortal.tsx +++ b/components/ClientPortal.tsx @@ -1,4 +1,5 @@ import React, { useState, useRef, useEffect } from 'react'; +import ReactMarkdown from 'react-markdown'; import { Ticket, KBArticle, ChatMessage, TicketPriority, TicketStatus, SurveyResult, Attachment, ClientUser, TicketQueue, AppSettings } from '../types'; import { getSupportResponse } from '../services/geminiService'; import { ToastType } from './Toast'; @@ -39,6 +40,23 @@ interface ClientPortalProps { showToast: (message: string, type: ToastType) => void; } +// Configurazione stili per ReactMarkdown +const MarkdownComponents = { + h1: (props: any) =>

, + h2: (props: any) =>

, + h3: (props: any) =>

, + p: (props: any) =>

, + ul: (props: any) =>