/* eslint-disable jsx-a11y/no-static-element-interactions */ import Link from 'next/link' const LongButton: React.FC = ({ children, newTab = false, href, onClick, center = false, }) => { if (href) { if (newTab) return (
{children}
) else return ( {children} ) } if (onClick) return (
{children}
) return ( {children} ) } export default LongButton interface LongButtonProps { newTab?: boolean onClick?: (event: React.KeyboardEvent | React.MouseEvent) => void children: string | JSX.Element | JSX.Element[] href?: string center?: boolean }