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

12345678910111213
  1. import { useMemo } from 'react'
  2. import { useStore } from '@/app/components/workflow/store'
  3. import { FlowType } from '@/types/common'
  4. export const useConfigsMap = () => {
  5. const appId = useStore(s => s.appId)
  6. return useMemo(() => {
  7. return {
  8. flowId: appId!,
  9. flowType: FlowType.appFlow,
  10. }
  11. }, [appId])
  12. }