(editorName: string, href: string)
| 36 | ] |
| 37 | |
| 38 | const handleEditorClick = (editorName: string, href: string) => { |
| 39 | window.open( |
| 40 | href + |
| 41 | encodeURIComponent( |
| 42 | typeof window !== 'undefined' ? window.location.pathname : '', |
| 43 | ), |
| 44 | '_blank', |
| 45 | ) |
| 46 | } |
| 47 | |
| 48 | const handleCdCommandCopy = () => { |
| 49 | navigator.clipboard.writeText('cd /path/to/your-repo') |