dify/web/app/components/rag-pipeline/hooks/use-configs-map.ts

14 lines
350 B
TypeScript
Raw Normal View History

2025-07-14 16:04:43 +08:00
import { useMemo } from 'react'
import { useStore } from '@/app/components/workflow/store'
import { FlowType } from '@/types/common'
export const useConfigsMap = () => {
const pipelineId = useStore(s => s.pipelineId)
return useMemo(() => {
return {
flowId: pipelineId!,
flowType: FlowType.ragPipeline,
}
}, [pipelineId])
}