mirror of
https://github.com/langgenius/dify.git
synced 2026-05-04 17:38:04 +08:00
Improve workflow block selector search functionality (#24707)
This commit is contained in:
@ -7,16 +7,22 @@ import type { ToolDefaultValue } from './types'
|
||||
type TriggerPluginSelectorProps = {
|
||||
onSelect: (type: BlockEnum, tool?: ToolDefaultValue) => void
|
||||
searchText: string
|
||||
onContentStateChange?: (hasContent: boolean) => void
|
||||
tags?: string[]
|
||||
}
|
||||
|
||||
const TriggerPluginSelector = ({
|
||||
onSelect,
|
||||
searchText,
|
||||
onContentStateChange,
|
||||
tags = [],
|
||||
}: TriggerPluginSelectorProps) => {
|
||||
return (
|
||||
<TriggerPluginList
|
||||
onSelect={onSelect}
|
||||
searchText={searchText}
|
||||
onContentStateChange={onContentStateChange}
|
||||
tags={tags}
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user