選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

use-configs-map.ts 470B

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. }