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 382B

123456789101112
  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. conversationVarsUrl: `apps/${appId}/workflows/draft/conversation-variables`,
  8. systemVarsUrl: `apps/${appId}/workflows/draft/system-variables`,
  9. }
  10. }, [appId])
  11. }