refactor: remove Cursor and VS Code options from CopyPageDropdown

This commit is contained in:
Wayne Sutton
2025-12-14 13:16:29 -08:00
parent 128763387b
commit e701737090

View File

@@ -1,5 +1,5 @@
import { useState, useRef, useEffect } from "react";
import { Copy, MessageSquare, Sparkles, Terminal, Code } from "lucide-react";
import { Copy, MessageSquare, Sparkles } from "lucide-react";
interface CopyPageDropdownProps {
title: string;
@@ -66,21 +66,6 @@ export default function CopyPageDropdown({
setIsOpen(false);
};
// Open Cursor MCP connection page
const handleConnectToCursor = () => {
window.open("https://cursor.sh/settings/mcp", "_blank");
setIsOpen(false);
};
// Open VS Code MCP connection page
const handleConnectToVSCode = () => {
window.open(
"https://marketplace.visualstudio.com/items?itemName=anthropics.claude-code",
"_blank",
);
setIsOpen(false);
};
return (
<div className="copy-page-dropdown" ref={dropdownRef}>
{/* Trigger button */}
@@ -153,34 +138,6 @@ export default function CopyPageDropdown({
</span>
</div>
</button>
{/* Connect to Cursor */}
<button className="copy-page-item" onClick={handleConnectToCursor}>
<Terminal size={16} className="copy-page-icon" />
<div className="copy-page-item-content">
<span className="copy-page-item-title">
Connect to Cursor
<span className="external-arrow"></span>
</span>
<span className="copy-page-item-desc">
Install MCP Server on Cursor
</span>
</div>
</button>
{/* Connect to VS Code */}
<button className="copy-page-item" onClick={handleConnectToVSCode}>
<Code size={16} className="copy-page-icon" />
<div className="copy-page-item-content">
<span className="copy-page-item-title">
Connect to VS Code
<span className="external-arrow"></span>
</span>
<span className="copy-page-item-desc">
Install MCP Server on VS Code
</span>
</div>
</button>
</div>
)}
</div>