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.

преди 3 месеца
преди 3 месеца
12345678910111213141516
  1. import { useMemo } from 'react'
  2. import { useStore } from '@/app/components/workflow/store'
  3. import { FlowType } from '@/types/common'
  4. import { useFeatures } from '@/app/components/base/features/hooks'
  5. export const useConfigsMap = () => {
  6. const appId = useStore(s => s.appId)
  7. const fileSettings = useFeatures(s => s.features.file)
  8. return useMemo(() => {
  9. return {
  10. flowId: appId!,
  11. flowType: FlowType.appFlow,
  12. fileSettings,
  13. }
  14. }, [appId])
  15. }