diff --git a/components/Button.tsx b/components/Button.tsx new file mode 100644 index 0000000..30de42e --- /dev/null +++ b/components/Button.tsx @@ -0,0 +1,23 @@ +import Link from 'next/link' + +const Button = ({ type='button', className='', children, href, onClick }: ButtonProps):JSX.Element => { + return href ? + + { children } + + : onClick ? : +} + +interface ButtonProps { + type?: 'button' | 'submit' | 'reset' + className?: string + children: JSX.Element | JSX.Element[] | string + href?: string + onClick?: () => void +} + +export default Button \ No newline at end of file