(e: React.MouseEvent)
| 17 | children, |
| 18 | }: SelectableLinkProps): ReactElement { |
| 19 | const onLinkClick = (e: React.MouseEvent) => { |
| 20 | const selection = globalThis?.window?.getSelection(); |
| 21 | const hasSelection = selection?.anchorOffset !== selection?.focusOffset; |
| 22 | |
| 23 | if (hasSelection) { |
| 24 | e.preventDefault(); |
| 25 | } |
| 26 | }; |
| 27 | |
| 28 | return ( |
| 29 | <Link href={href} {...linkProps}> |
nothing calls this directly
no outgoing calls
no test coverage detected