mirror of
https://github.com/langgenius/dify.git
synced 2025-07-18 14:52:32 +00:00
13 lines
382 B
TypeScript
13 lines
382 B
TypeScript
import { useMemo } from 'react'
|
|
import { useStore } from '@/app/components/workflow/store'
|
|
|
|
export const useConfigsMap = () => {
|
|
const appId = useStore(s => s.appId)
|
|
return useMemo(() => {
|
|
return {
|
|
conversationVarsUrl: `apps/${appId}/workflows/draft/conversation-variables`,
|
|
systemVarsUrl: `apps/${appId}/workflows/draft/system-variables`,
|
|
}
|
|
}, [appId])
|
|
}
|