import React from "react";

export default function Button({
  title,
  backgroundColor,
  color,
  border,
  width,
  bgOpacity,
  onClick,
}) {
  return (
    <button
      className={`rounded-md py-3 justify-center text-xs ${backgroundColor} ${color} ${bgOpacity}`}
      style={{
        border: `${border.width} solid ${border.color}`,
        width: width,
      }}
      onClick={() => onClick()}
    >
      {title}
    </button>
  );
}