import React, { ReactNode } from 'react'

type ButtonProps = {
  children: ReactNode,

  /**
   * Simple click handler
   */
  onClick?: () => void,
}

/**
 * The world's most _basic_ button
 */
export const Button = ({ children, onClick }: ButtonProps) => (
  <button onClick={onClick} type='button'>
    {children}
  </button>
)
