Files
ragflow/web/src/pages/agent/hooks/use-is-pipeline.ts
balibabu 685114d253 Feat: Display the pipeline on the agent canvas #9869 (#10638)
### What problem does this PR solve?

Feat: Display the pipeline on the agent canvas #9869
### Type of change


- [x] New Feature (non-breaking change which adds functionality)
2025-10-17 18:47:33 +08:00

11 lines
281 B
TypeScript

import { AgentCategory, AgentQuery } from '@/constants/agent';
import { useSearchParams } from 'umi';
export function useIsPipeline() {
const [queryParameters] = useSearchParams();
return (
queryParameters.get(AgentQuery.Category) === AgentCategory.DataflowCanvas
);
}