mirror of
https://github.com/lobehub/lobehub
synced 2026-04-21 17:47:27 +00:00
* 🗃️ refactor: refactor the agent config to chat config * ✅ test: fix test * 🗃️ refactor: add db migration * ✅ test: fix test
31 lines
789 B
TypeScript
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;
|