mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-17 11:09:06 +08:00
### What problem does this PR solve? Feat: Add Sessions component #3221 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
38
web/src/pages/next-chats/chat/sessions.tsx
Normal file
38
web/src/pages/next-chats/chat/sessions.tsx
Normal file
@ -0,0 +1,38 @@
|
||||
import { Button } from '@/components/ui/button';
|
||||
import { Card, CardContent } from '@/components/ui/card';
|
||||
import { EllipsisVertical, Plus } from 'lucide-react';
|
||||
|
||||
function SessionCard() {
|
||||
return (
|
||||
<Card className="bg-colors-background-inverse-weak border-colors-outline-neutral-standard">
|
||||
<CardContent className="px-3 py-2 flex justify-between items-center">
|
||||
xxx
|
||||
<Button variant={'icon'} size={'icon'}>
|
||||
<EllipsisVertical />
|
||||
</Button>
|
||||
</CardContent>
|
||||
</Card>
|
||||
);
|
||||
}
|
||||
|
||||
export function Sessions() {
|
||||
const sessionList = new Array(10).fill(1);
|
||||
|
||||
return (
|
||||
<section className="p-6 w-[400px] max-w-[20%]">
|
||||
<div className="flex justify-between items-center mb-4">
|
||||
<span className="text-colors-text-neutral-strong text-2xl font-bold">
|
||||
Sessions
|
||||
</span>
|
||||
<Button variant={'icon'} size={'icon'}>
|
||||
<Plus></Plus>
|
||||
</Button>
|
||||
</div>
|
||||
<div className="space-y-4">
|
||||
{sessionList.map((x) => (
|
||||
<SessionCard key={x.id}></SessionCard>
|
||||
))}
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user