diff --git a/src/front/components/AIReplyPanel.jsx b/src/front/components/AIReplyPanel.jsx index fe92954..c2d751a 100644 --- a/src/front/components/AIReplyPanel.jsx +++ b/src/front/components/AIReplyPanel.jsx @@ -1,9 +1,10 @@ import {useEffect, useState} from 'react'; -import {aiMessages} from '../i18n/ai'; import {aiRequest} from '../services/aiService'; import {inboxService} from '../services/inboxService'; +import {useLanguage} from '../context/LanguageContext'; export function AIReplyPanel({conversationId, token, companyId, onChanged, latestInbound}) { + const {ui} = useLanguage(); const [agents, setAgents] = useState([]); const [agentId, setAgentId] = useState(''); const [question, setQuestion] = useState(''); @@ -28,28 +29,29 @@ export function AIReplyPanel({conversationId, token, companyId, onChanged, lates catch(e) {setError(e.message);} finally {setBusy(false);} } - return
- Asistente IA · revisión humana obligatoria + const statuses={pending_review:ui.pendingReview,approved:ui.approvedDraft,rejected:ui.rejectedDraft,handoff:ui.humanAttention}; + return
+ {ui.humanReview} {error &&

{error}

}
- setAgentId(e.target.value)} disabled={busy}> + {agents.map(a=>)} - +
- {!agents.length &&

Configura un agente en Agentes IA y vincula documentos procesados.

} + {!agents.length &&

{ui.configureAgentHint}

} {latestInbound && } -