Feat: Add DatasetTable #3221 (#3743)

### What problem does this PR solve?

Feat: Add DatasetTable #3221

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2024-11-29 16:05:46 +08:00
committed by GitHub
parent 1e0fc76efa
commit c93e0355c3
7 changed files with 132 additions and 98 deletions

View File

@ -2,7 +2,7 @@ import { Button } from '@/components/ui/button';
import { KnowledgeRouteKey } from '@/constants/knowledge';
import { useSecondPathName } from '@/hooks/route-hook';
import { cn } from '@/lib/utils';
import { Banknote, LayoutGrid, User } from 'lucide-react';
import { Banknote, LayoutGrid, Trash2, User } from 'lucide-react';
import { useHandleMenuClick } from './hooks';
const items = [
@ -29,7 +29,7 @@ export function SideBar() {
const { handleMenuClick } = useHandleMenuClick();
return (
<aside className="w-[303px]">
<aside className="w-[303px] relative">
<div className="p-6 space-y-2 border-b">
<div
className="w-[70px] h-[70px] rounded-xl bg-cover"
@ -61,6 +61,13 @@ export function SideBar() {
);
})}
</div>
<Button
variant="outline"
className="absolute bottom-6 left-6 right-6 text-colors-text-functional-danger border-colors-text-functional-danger"
>
<Trash2 />
Delete dataset
</Button>
</aside>
);
}