mirror of
https://github.com/langgenius/dify.git
synced 2026-02-28 05:26:26 +08:00
7 lines
186 B
TypeScript
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)
|
|
}
|