( anchor: HTMLAnchorElement | null, imageSrc: string, )
| 61 | } |
| 62 | |
| 63 | function shouldOpenAnchorImage( |
| 64 | anchor: HTMLAnchorElement | null, |
| 65 | imageSrc: string, |
| 66 | ): boolean { |
| 67 | if (!anchor?.href) { |
| 68 | return true; |
| 69 | } |
| 70 | |
| 71 | return isImageUrl(anchor.href) || isSameUrl(anchor.href, imageSrc); |
| 72 | } |
| 73 | |
| 74 | const UserEntityCard = dynamic(() => import('./cards/entity/UserEntityCard'), { |
| 75 | ssr: false, |
no test coverage detected