2025-07-02 17:48:07 +08:00
|
|
|
import { useMemo } from 'react'
|
|
|
|
import { useStore } from '@/app/components/workflow/store'
|
2025-07-14 15:10:21 +08:00
|
|
|
import { FlowType } from '@/types/common'
|
2025-07-29 16:18:15 +08:00
|
|
|
import { useFeatures } from '@/app/components/base/features/hooks'
|
2025-07-02 17:48:07 +08:00
|
|
|
|
|
|
|
export const useConfigsMap = () => {
|
|
|
|
const appId = useStore(s => s.appId)
|
2025-07-29 16:18:15 +08:00
|
|
|
const fileSettings = useFeatures(s => s.features.file)
|
2025-07-02 17:48:07 +08:00
|
|
|
return useMemo(() => {
|
|
|
|
return {
|
2025-07-14 15:10:21 +08:00
|
|
|
flowId: appId!,
|
|
|
|
flowType: FlowType.appFlow,
|
2025-07-29 16:18:15 +08:00
|
|
|
fileSettings,
|
2025-07-02 17:48:07 +08:00
|
|
|
}
|
|
|
|
}, [appId])
|
|
|
|
}
|