mirror of
https://github.com/langgenius/dify.git
synced 2025-07-31 13:28:20 +00:00
17 lines
470 B
TypeScript
17 lines
470 B
TypeScript
import { useMemo } from 'react'
|
|
import { useStore } from '@/app/components/workflow/store'
|
|
import { FlowType } from '@/types/common'
|
|
import { useFeatures } from '@/app/components/base/features/hooks'
|
|
|
|
export const useConfigsMap = () => {
|
|
const appId = useStore(s => s.appId)
|
|
const fileSettings = useFeatures(s => s.features.file)
|
|
return useMemo(() => {
|
|
return {
|
|
flowId: appId!,
|
|
flowType: FlowType.appFlow,
|
|
fileSettings,
|
|
}
|
|
}, [appId])
|
|
}
|