feat: add chat history and edit

This commit is contained in:
2024-09-30 02:53:13 +08:00
parent 029710f31c
commit 441b94a061
10 changed files with 269 additions and 30 deletions

View File

@@ -0,0 +1,26 @@
import { AiMoudle } from '@/pages/ai-chat';
import { Outlet } from 'react-router-dom';
type LayoutMainProps = {
title?: React.ReactNode;
children?: React.ReactNode;
};
export const LayoutMain = (props: LayoutMainProps) => {
return (
<div className='flex w-full h-full flex-col'>
<div className='layout-menu'>{props.title}</div>
<div
className='flex'
style={{
height: 'calc(100vh - 3rem)',
}}>
<div className='flex-grow overflow-hidden'>
<div className='w-full h-full rounded-lg'>
<Outlet />
</div>
</div>
<AiMoudle />
</div>
</div>
);
};