lobehub/src/app/(main)/chat/_layout/Desktop/index.tsx
Arvin Xu 2f311dc4b6
🗃️ refactor: migrate some agent config to chatConfig (#2646)
* 🗃️ refactor: refactor the agent config to chat config

*  test: fix test

* 🗃️ refactor: add db migration

*  test: fix test
2024-05-25 10:09:28 +08:00

31 lines
789 B
TypeScript

import { Flexbox } from 'react-layout-kit';
import Migration from '../../features/Migration';
import { LayoutProps } from '../type';
import SessionPanel from './SessionPanel';
const Layout = ({ children, session }: LayoutProps) => {
return (
<>
<Flexbox
height={'100%'}
horizontal
style={{ maxWidth: 'calc(100vw - 64px)', overflow: 'hidden', position: 'relative' }}
width={'100%'}
>
<SessionPanel>{session}</SessionPanel>
<Flexbox flex={1} style={{ overflow: 'hidden', position: 'relative' }}>
{children}
</Flexbox>
</Flexbox>
<Migration />
{/* ↓ cloud slot ↓ */}
{/* ↑ cloud slot ↑ */}
</>
);
};
Layout.displayName = 'DesktopChatLayout';
export default Layout;