import React from "react";
const buttonHoverStyle = `.ricos-dev-tools-button:hover:not(:disabled) {
  background-color: rgba(203, 166, 247, .4);
  color: #cdd6f4;
}
.ricos-dev-tools-button:disabled,
.ricos-dev-tools-button[aria-disabled='true'] {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}`;
const buttonStyle = {
  border: "none",
  textTransform: "uppercase",
  fontWeight: 400,
  letterSpacing: "1px",
  padding: "6px 10px",
  margin: "0 0 0 8px",
  fontSize: "11px",
  color: "rgba(205, 214, 244, .8)",
  transition: "background .3s, color .3s, opacity .15s",
  borderRadius: "2px",
  background: "transparent",
  cursor: "pointer",
  textDecoration: "none",
  display: "inline-block"
};
const Button = (props) => {
  if ("href" in props) {
    const { href, disabled, ...rest } = props;
    return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("style", null, buttonHoverStyle), /* @__PURE__ */ React.createElement(
      "a",
      {
        ...rest,
        href: disabled ? void 0 : href,
        "aria-disabled": disabled || void 0,
        style: buttonStyle,
        className: "ricos-dev-tools-button"
      }
    ));
  }
  return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("style", null, buttonHoverStyle), /* @__PURE__ */ React.createElement("button", { type: "button", ...props, style: buttonStyle, className: "ricos-dev-tools-button" }));
};
export {
  Button
};
//# sourceMappingURL=button.js.map
