Chore/workflow last run (#21823)
Co-authored-by: Joel <iamjoel007@gmail.com>
This commit is contained in:
12
web/app/components/workflow-app/hooks/use-configs-map.ts
Normal file
12
web/app/components/workflow-app/hooks/use-configs-map.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
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])
|
||||
}
|
||||
Reference in New Issue
Block a user