({ href, children, ...rest })
| 295 | () => ({ |
| 296 | ...ANCHOR_COMPONENTS, |
| 297 | a({ href, children, ...rest }) { |
| 298 | const ref = href ? hrefToRef(href) : null; |
| 299 | if (ref) { |
| 300 | return ( |
| 301 | <a |
| 302 | href={href} |
| 303 | onClick={(e) => { |
| 304 | e.preventDefault(); |
| 305 | onOpenRef(ref); |
| 306 | }} |
| 307 | className="text-[var(--amber)] underline hover:text-[var(--paper)]" |
| 308 | > |
| 309 | {children} |
| 310 | </a> |
| 311 | ); |
| 312 | } |
| 313 | return ( |
| 314 | <a href={href} target="_blank" rel="noreferrer" {...rest}> |
| 315 | {children} |
| 316 | </a> |
| 317 | ); |
| 318 | }, |
| 319 | }), |
| 320 | [onOpenRef], |
| 321 | ); |
nothing calls this directly
no test coverage detected