mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-26 17:16:52 +08:00
### What problem does this PR solve? Feat: Render the agent list page by page #3221 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
11 lines
305 B
TypeScript
11 lines
305 B
TypeScript
import { useFetchAgentListByPage } from '@/hooks/use-agent-request';
|
|
import { ApplicationCard } from './application-card';
|
|
|
|
export function Agents() {
|
|
const { data } = useFetchAgentListByPage();
|
|
|
|
return data
|
|
.slice(0, 10)
|
|
.map((x) => <ApplicationCard key={x.id} app={x}></ApplicationCard>);
|
|
}
|