You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

use-configs-map.ts 403B

12345678910111213
  1. import { useMemo } from 'react'
  2. import { useStore } from '@/app/components/workflow/store'
  3. export const useConfigsMap = () => {
  4. const appId = useStore(s => s.appId)
  5. return useMemo(() => {
  6. return {
  7. flowId: appId,
  8. conversationVarsUrl: `apps/${appId}/workflows/draft/conversation-variables`,
  9. systemVarsUrl: `apps/${appId}/workflows/draft/system-variables`,
  10. }
  11. }, [appId])
  12. }