MCPcopy Create free account
hub / github.com/Qinbf/groundmap / a

Function a

tools/debug-console/components/PreviewPanel.tsx:297–318  ·  view source on GitHub ↗
({ href, children, ...rest })

Source from the content-addressed store, hash-verified

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 );

Callers

nothing calls this directly

Calls 1

hrefToRefFunction · 0.90

Tested by

no test coverage detected