MCPcopy Create free account
hub / github.com/CommandCodeAI/BaseAI / handleClick

Function handleClick

apps/baseai.dev/src/components/ui/button.tsx:91–98  ·  view source on GitHub ↗
(e: React.MouseEvent<HTMLButtonElement>)

Source from the content-addressed store, hash-verified

89 const router = useRouter();
90
91 const handleClick = (e: React.MouseEvent<HTMLButtonElement>) => {
92 if (href) {
93 e.preventDefault();
94 router.push(href);
95 }
96
97 onClick?.(e);
98 };
99
100 let arrowIcon = (
101 <ArrowIcon

Callers

nothing calls this directly

Calls 1

onClickFunction · 0.85

Tested by

no test coverage detected