diff --git a/front/components/assistant/AssistantPicker.tsx b/front/components/assistant/AssistantPicker.tsx index c00c710d03df..611d41ed166a 100644 --- a/front/components/assistant/AssistantPicker.tsx +++ b/front/components/assistant/AssistantPicker.tsx @@ -13,7 +13,6 @@ import type { LightAgentConfigurationType, WorkspaceType, } from "@dust-tt/types"; -import { isBuilder } from "@dust-tt/types"; import Link from "next/link"; import { useEffect, useState } from "react"; @@ -26,7 +25,6 @@ export function AssistantPicker({ assistants, onItemClick, pickerButton, - showBuilderButtons, size = "md", }: { owner: WorkspaceType; @@ -71,26 +69,54 @@ export function AssistantPicker({ /> )} - - {assistants.length > 7 && ( -
- { - if (e.key === "Enter" && searchedAssistants.length > 0) { - onItemClick(searchedAssistants[0]); - setSearchText(""); - } - }} - /> + + {assistants.length > 7 && ( +
+ { + if (e.key === "Enter" && searchedAssistants.length > 0) { + onItemClick(searchedAssistants[0]); + setSearchText(""); + } + }} + /> +
+ )} + + } + bottomBar={ +
+ +
- )} -
- {searchedAssistants.map((c) => ( + } + > + {searchedAssistants.map((c) => (
))} -
- {showBuilderButtons && ( -
- -
- )}
);