23 lines
639 B
TypeScript
23 lines
639 B
TypeScript
import Layout from '@theme/Layout';
|
|
import { ReactNode } from 'react';
|
|
|
|
import { useChat } from '@docuservix/hooks/useChat';
|
|
import { Chat } from '@docuservix/widgets/chat';
|
|
|
|
export function ChatPage(): ReactNode {
|
|
const { dialog, typing, statusMessage, sendMessage } = useChat();
|
|
|
|
return (
|
|
<Layout title="Чат">
|
|
<main className="container margin-vert--lg">
|
|
<Chat
|
|
dialog={dialog}
|
|
typing={typing}
|
|
statusMessage={statusMessage}
|
|
onSend={sendMessage}
|
|
/>
|
|
</main>
|
|
</Layout>
|
|
);
|
|
}
|