Add sserver actions

This commit is contained in:
CREDO23 2025-10-23 01:28:07 +02:00 committed by thierryverse
parent 4c22f4a953
commit ce658b91ea
5 changed files with 71 additions and 42 deletions

View file

@ -7,10 +7,10 @@ import { chatInterfaceContext } from "../ChatInterface";
import { ConfigModal } from "./ConfigModal";
interface ChatPanelViewProps {
chatId: string;
chat_id: string;
}
export default function ChatPanelView({ chatId }: ChatPanelViewProps) {
export function ChatPanelView({ chat_id: chatId }: ChatPanelViewProps) {
const context = useContext(chatInterfaceContext);
if (!context) {
throw new Error("chatInterfaceContext must be used within a ChatProvider");