import React from "react";

export interface ButtonProps {
  label: string;
  variant?: "primary" | "secondary" | "danger";
  onClick?: () => void;
  disabled?: boolean;
}

export function Button({
  label,
  variant = "primary",
  onClick,
  disabled = false,
}: ButtonProps): JSX.Element {
  return (
    <button
      className={`btn btn--${variant}`}
      onClick={onClick}
      disabled={disabled}
    >
      {label}
    </button>
  );
}

export default Button;
