mirror of
https://github.com/langgenius/dify.git
synced 2025-07-30 04:45:43 +00:00
14 lines
350 B
TypeScript
14 lines
350 B
TypeScript
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])
|
|
}
|