mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-04-30 23:37:49 +08:00
### What problem does this PR solve? Feat: Add agent page. #3221 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
34 lines
949 B
TypeScript
34 lines
949 B
TypeScript
import { PageHeader } from '@/components/page-header';
|
|
import { Button } from '@/components/ui/button';
|
|
import { useNavigatePage } from '@/hooks/logic-hooks/navigate-hooks';
|
|
import { Trash2 } from 'lucide-react';
|
|
|
|
export default function Agent() {
|
|
const { navigateToAgentList } = useNavigatePage();
|
|
|
|
return (
|
|
<section>
|
|
<PageHeader back={navigateToAgentList} title="Agent 01">
|
|
<div className="flex items-center gap-2">
|
|
<Button variant={'icon'} size={'icon'}>
|
|
<Trash2 />
|
|
</Button>
|
|
<Button variant={'outline'} size={'sm'}>
|
|
Save
|
|
</Button>
|
|
<Button variant={'outline'} size={'sm'}>
|
|
API
|
|
</Button>
|
|
<Button variant={'outline'} size={'sm'}>
|
|
Run app
|
|
</Button>
|
|
|
|
<Button variant={'tertiary'} size={'sm'}>
|
|
Publish
|
|
</Button>
|
|
</div>
|
|
</PageHeader>
|
|
</section>
|
|
);
|
|
}
|