bigbuffet-rw/app/soapbox/features/chats/components/chat-page/chat-page.tsx

27 lines
841 B
TypeScript
Raw Normal View History

2022-09-13 08:18:46 -07:00
import React from 'react';
2022-09-16 11:33:31 -07:00
import { Card, Stack } from 'soapbox/components/ui';
2022-09-13 08:18:46 -07:00
import ChatPageMain from './components/chat-page-main';
import ChatPageSidebar from './components/chat-page-sidebar';
2022-09-13 08:18:46 -07:00
const ChatPage = () => {
return (
<Card className='p-0 h-[calc(100vh-176px)] overflow-hidden' variant='rounded'>
<div className='grid grid-cols-9 overflow-hidden h-full dark:divide-x-2 dark:divide-solid dark:divide-gray-800'>
2022-09-16 11:33:31 -07:00
<Stack
2022-09-19 12:56:23 -07:00
className='col-span-9 sm:col-span-3 p-6 bg-gradient-to-r from-white to-gray-100 dark:bg-gray-900 dark:bg-none overflow-hidden dark:inset'
2022-09-16 11:33:31 -07:00
>
<ChatPageSidebar />
</Stack>
2022-09-19 12:56:23 -07:00
<Stack className='hidden sm:block col-span-6 h-full overflow-hidden'>
2022-09-16 11:33:31 -07:00
<ChatPageMain />
</Stack>
2022-09-13 08:18:46 -07:00
</div>
</Card>
);
};
2022-09-13 11:11:22 -07:00
export default ChatPage;