import Link from 'next/link'
import { ReactNode } from 'react'
const Button = ({
type = 'button',
className,
children,
href,
onClick,
}: ButtonProps): JSX.Element => {
return href ? (
{children}
) : onClick ? (
) : (
)
}
interface ButtonProps {
type?: 'button' | 'submit' | 'reset'
className?: string
children: ReactNode
href?: string
onClick?: () => void
}
export default Button