import React from "react";
import { Some } from "../utils/Some";

type Props = {
  readonly className: string;
  readonly text: string;
  readonly onClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
  [key: string]: any;
};

export const Button = ({ className, text, onClick, ...props }: Props) => {
  return (
    <button className={className} onClick={onClick} {...props}>
      {text}
    </button>
  );
};
