2025-07-02 17:48:07 +08:00
|
|
|
import { useMemo } from 'react'
|
|
|
|
|
import { useStore } from '@/app/components/workflow/store'
|
|
|
|
|
|
|
|
|
|
export const useConfigsMap = () => {
|
|
|
|
|
const appId = useStore(s => s.appId)
|
|
|
|
|
return useMemo(() => {
|
|
|
|
|
return {
|
2025-08-18 12:29:12 +08:00
|
|
|
flowId: appId,
|
2025-07-02 17:48:07 +08:00
|
|
|
conversationVarsUrl: `apps/${appId}/workflows/draft/conversation-variables`,
|
|
|
|
|
systemVarsUrl: `apps/${appId}/workflows/draft/system-variables`,
|
|
|
|
|
}
|
|
|
|
|
}, [appId])
|
|
|
|
|
}
|