2022-09-13 08:18:46 -07:00
|
|
|
import React from 'react';
|
2022-04-12 09:52:56 -07:00
|
|
|
|
2022-09-13 08:18:46 -07:00
|
|
|
import { ChatProvider } from 'soapbox/contexts/chat-context';
|
2022-04-12 09:52:56 -07:00
|
|
|
|
2022-09-16 07:13:45 -07:00
|
|
|
import ChatPage from './components/chat-page/chat-page';
|
2022-04-12 09:52:56 -07:00
|
|
|
|
2022-09-28 13:38:05 -07:00
|
|
|
interface IChatIndex {
|
|
|
|
params?: {
|
|
|
|
chatId?: string,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
const ChatIndex: React.FC<IChatIndex> = ({ params }) => (
|
2022-09-13 08:18:46 -07:00
|
|
|
<ChatProvider>
|
2022-09-28 13:38:05 -07:00
|
|
|
<ChatPage chatId={params?.chatId} />
|
2022-09-13 08:18:46 -07:00
|
|
|
</ChatProvider>
|
|
|
|
);
|
2022-04-12 09:52:56 -07:00
|
|
|
|
|
|
|
export default ChatIndex;
|