Files
dify/web/app/components/workflow/block-selector/utils.ts
StyleZhang 240e0dfa6f next-step
2024-02-18 20:26:16 +08:00

7 lines
186 B
TypeScript

import type { BlockEnum } from '../types'
import { BLOCKS } from './constants'
export const getBlockByType = (type: BlockEnum) => {
return BLOCKS.find(block => block.type === type)
}