bigbuffet-rw/app/soapbox/features/chats/index.tsx

20 lines
377 B
TypeScript
Raw Normal View History

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