// Agent 连接器:输入框底部的第三方协作工具入口条。 // // 流光溢彩渐变背景 + 紧凑排列的品牌图标,无独立按钮背景。 // 品牌图标为内联 SVG 占位,避免外链 favicon 依赖。 import { App } from "antd"; import { Cable, X } from "lucide-react"; import type { ReactNode } from "react"; import { Tooltip } from "@/components/ui/base/tooltip"; import "./canvas-cloud-agent-connectors.css"; type AgentConnector = { id: string; name: string; icon: ReactNode; }; function NotionIcon() { return ( ); } function FeishuIcon() { return ( ); } function BasecampIcon() { return ( ); } function ObsidianIcon() { return ( ); } function GitHubIcon() { return ( ); } function TencentDocsIcon() { return ( ); } function SlackIcon() { return ( ); } const AGENT_CONNECTORS: AgentConnector[] = [ { id: "notion", name: "Notion", icon: }, { id: "feishu", name: "飞书", icon: }, { id: "basecamp", name: "Basecamp", icon: }, { id: "obsidian", name: "Obsidian", icon: }, { id: "github", name: "GitHub", icon: }, { id: "tencent-docs", name: "腾讯文档", icon: }, { id: "slack", name: "Slack", icon: }, ]; /** 输入框底部的连接器条,流光溢彩背景,紧凑图标阵列。 */ export function AgentConnectorsBar({ onClose }: { onClose: () => void }) { const { message } = App.useApp(); return (
连接器
{AGENT_CONNECTORS.map((connector) => ( ))}
); }