import Link from "next/link"; type ButtonProps = { className?: string; href?: string; children: React.ReactChild | React.ReactChild[]; }; export default function Button(props: ButtonProps): JSX.Element { const button = (
{props.children}
); const result = props.href ? ( {button} ) : ( button ); return result; }