Skip to content

Commit a1df17a

Browse files
committed
Remove extra work
1 parent 976a8e1 commit a1df17a

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

src/components/CopyPageButton.tsx

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import {
1616
PiCheckCircleLight,
1717
PiXCircleLight,
1818
PiChatCircleLight,
19-
PiLinkLight,
2019
} from "react-icons/pi";
2120
import ClaudeIcon from "./icons/ClaudeIcon";
2221
import ChatGPTIcon from "./icons/ChatGPTIcon";
@@ -100,34 +99,7 @@ export default function CopyPageButton() {
10099
}
101100
};
102101

103-
const handleCopyPageLink = async () => {
104-
try {
105-
await navigator.clipboard.writeText(window.location.href);
106-
track("clicked copy page button", {
107-
value: "copy page link",
108-
});
109-
110-
setCopyState("success");
111-
setTimeout(() => {
112-
setCopyState("idle");
113-
}, 1500);
114-
} catch (error) {
115-
console.error("Failed to copy page link:", error);
116-
117-
setCopyState("error");
118-
setTimeout(() => {
119-
setCopyState("idle");
120-
}, 1500);
121-
}
122-
};
123-
124102
const options = [
125-
{
126-
label: "Copy page link",
127-
description: "Copy the current page URL to clipboard",
128-
icon: PiLinkLight,
129-
onClick: handleCopyPageLink,
130-
},
131103
{
132104
label: "View Page as Markdown",
133105
description: "Open the Markdown file in a new tab",

0 commit comments

Comments
 (0)