Adiciona widget de chat flutuante global
- Widget no canto inferior direito em todas as paginas - Mostra sessoes de chat ativas do agente - Suporta multiplas sessoes com seletor - Badge com contador de mensagens nao lidas - Pode minimizar ou fechar - Query listAgentSessions para buscar sessoes ativas 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
2a78d14a74
commit
8c465008bf
4 changed files with 360 additions and 1 deletions
13
src/components/chat/chat-widget-provider.tsx
Normal file
13
src/components/chat/chat-widget-provider.tsx
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
"use client"
|
||||
|
||||
import dynamic from "next/dynamic"
|
||||
|
||||
// Importacao dinamica para evitar problemas de SSR
|
||||
const ChatWidget = dynamic(
|
||||
() => import("./chat-widget").then((mod) => ({ default: mod.ChatWidget })),
|
||||
{ ssr: false }
|
||||
)
|
||||
|
||||
export function ChatWidgetProvider() {
|
||||
return <ChatWidget />
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue