diff --git a/front/components/assistant/AssistantPreview.tsx b/front/components/assistant/AssistantPreview.tsx index 8b7a6d29aae3..11c7e0516a58 100644 --- a/front/components/assistant/AssistantPreview.tsx +++ b/front/components/assistant/AssistantPreview.tsx @@ -4,7 +4,6 @@ import { Chip, DashIcon, MoreIcon, - PlayIcon, PlusIcon, } from "@dust-tt/sparkle"; import { @@ -29,7 +28,6 @@ interface AssistantPreviewProps { onUpdate: () => void; variant: AssistantPreviewVariant; flow: AssistantPreviewFlow; - setTestModalAssistant?: (agentConfiguration: AgentConfigurationType) => void; } function getDescriptionClassName(variant: AssistantPreviewVariant): string { @@ -57,7 +55,6 @@ export function AssistantPreview({ onUpdate, variant, flow, - setTestModalAssistant, }: AssistantPreviewProps) { const [isUpdatingList, setIsUpdatingList] = useState(false); // TODO(flav) Move notification logic to the caller. This maintains the purity of the component by @@ -203,24 +200,7 @@ export function AssistantPreview({ default: assertNever(flow); } - let testButton = null; - if ( - setTestModalAssistant && - ((flow === "workspace" && agentConfiguration.scope === "published") || - (flow === "personal" && - agentConfiguration.userListStatus === "not-in-list")) - ) { - testButton = ( -