File tree Expand file tree Collapse file tree 1 file changed +0
-28
lines changed Expand file tree Collapse file tree 1 file changed +0
-28
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ import {
1616	PiCheckCircleLight , 
1717	PiXCircleLight , 
1818	PiChatCircleLight , 
19- 	PiLinkLight , 
2019}  from  "react-icons/pi" ; 
2120import  ClaudeIcon  from  "./icons/ClaudeIcon" ; 
2221import  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" , 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments