diff --git a/src/components/Button.tsx b/src/components/Button.tsx index 9f87826..0eafcfb 100644 --- a/src/components/Button.tsx +++ b/src/components/Button.tsx @@ -1,4 +1,5 @@ import Link from "next/link"; +import { MouseEventHandler } from "react"; type ButtonProps = { className?: string; @@ -6,11 +7,13 @@ type ButtonProps = { children: React.ReactChild | React.ReactChild[]; active?: boolean; locale?: string; + onClick?: MouseEventHandler; }; export default function Button(props: ButtonProps): JSX.Element { const button = (
+ );