"use client" import Link from "next/link" import { Label } from "@/components/ui/label" import { Switch } from "@/components/ui/switch" import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card" import { toggleUltiAiToolGroup, ULTIAI_TOOL_GROUPS, } from "@/lib/ai/ultiai-tool-groups" type UltiAiToolsCardProps = { enabledTools: string[] onChange: (enabledTools: string[]) => void webSearchSettingsHref?: string } export function UltiAiToolsCard({ enabledTools, onChange, webSearchSettingsHref = "/mail/settings/automation", }: UltiAiToolsCardProps) { return ( Tools UltiAI Groupes d'outils MCP exposés à l'assistant. La recherche web supporte Brave, Bing, DuckDuckGo, SearXNG et API JSON — config dans{" "} Automatisations → Recherche {" "} (utilisateur) ou Administration → Moteur de recherche (organisation). {ULTIAI_TOOL_GROUPS.map((group) => { const checked = enabledTools.includes(group.id) return ( ) })} ) }