2025-12-07 19:32:53 +02:00
|
|
|
import React from 'react';
|
|
|
|
|
import { ChatContainer } from '@/components/chat/ChatContainer';
|
|
|
|
|
import { ChatErrorBoundary } from '@/components/chat/ChatErrorBoundary';
|
2026-03-31 18:47:00 +03:00
|
|
|
import { useSessionUIStore } from '@/sync/session-ui-store';
|
2025-12-07 19:32:53 +02:00
|
|
|
|
|
|
|
|
export const ChatView: React.FC = () => {
|
2026-03-31 18:47:00 +03:00
|
|
|
const currentSessionId = useSessionUIStore((state) => state.currentSessionId);
|
2025-12-07 19:32:53 +02:00
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<ChatErrorBoundary sessionId={currentSessionId || undefined}>
|
|
|
|
|
<ChatContainer />
|
|
|
|
|
</ChatErrorBoundary>
|
|
|
|
|
);
|
|
|
|
|
};
|