mirror of
https://github.com/langgenius/dify.git
synced 2025-07-30 04:45:43 +00:00
14 lines
326 B
TypeScript
14 lines
326 B
TypeScript
import { useMemo } from 'react'
|
|
import { useStore } from '@/app/components/workflow/store'
|
|
import { FlowType } from '@/types/common'
|
|
|
|
export const useConfigsMap = () => {
|
|
const appId = useStore(s => s.appId)
|
|
return useMemo(() => {
|
|
return {
|
|
flowId: appId!,
|
|
flowType: FlowType.appFlow,
|
|
}
|
|
}, [appId])
|
|
}
|