/* eslint-disable jsx-a11y/no-static-element-interactions */
import Link from 'next/link'
const LongButton = ({ children, newTab=false, href, onClick, center=false }:LongButtonProps):JSX.Element => {
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
}