import { ButtonHTMLAttributes, FC } from 'react'
import cx from 'classnames'
import styles from './Button.module.css'

type Props = ButtonHTMLAttributes<HTMLButtonElement>

export const Button: FC<Props> = ({ className, children, ...rest }) => {
  return (
    <button className={cx(styles.root, className)} {...rest}>
      {children}
    </button>
  )
}
