chore: support tags filter

This commit is contained in:
Joel 2024-11-21 10:51:24 +08:00
parent 698e94856e
commit 98ae34acd5
2 changed files with 4 additions and 0 deletions

View File

@ -158,6 +158,7 @@ const NodeSelector: FC<NodeSelectorProps> = ({
onActiveTabChange={handleActiveTabChange}
onSelect={handleSelect}
searchText={searchText}
tags={tags}
availableBlocksTypes={availableBlocksTypes}
noBlocks={noBlocks}
/>

View File

@ -13,6 +13,7 @@ export type TabsProps = {
activeTab: TabsEnum
onActiveTabChange: (activeTab: TabsEnum) => void
searchText: string
tags: string[]
onSelect: (type: BlockEnum, tool?: ToolDefaultValue) => void
availableBlocksTypes?: BlockEnum[]
noBlocks?: boolean
@ -20,6 +21,7 @@ export type TabsProps = {
const Tabs: FC<TabsProps> = ({
activeTab,
onActiveTabChange,
tags,
searchText,
onSelect,
availableBlocksTypes,
@ -68,6 +70,7 @@ const Tabs: FC<TabsProps> = ({
<AllTools
searchText={searchText}
onSelect={onSelect}
tags={tags}
buildInTools={buildInTools}
customTools={customTools}
workflowTools={workflowTools}