import { jsx as i } from "react/jsx-runtime";
import { getAutoTrackingAttributes as b } from "../../utils/analytics/autoTracking.js";
import c from "../../utils/classNames.js";
const N = (m) => {
  const {
    text: o,
    bsStyle: u = "primary",
    className: s,
    onClick: a = () => {
    },
    href: t,
    autoTrackingKey: l,
    trackingAttributes: r,
    ...n
  } = m, e = b({
    autoTrackingKey: l,
    props: { ...r, ...n },
    source: t ? "link" : "button"
  });
  if (t)
    return /* @__PURE__ */ i(
      "a",
      {
        className: c("margin-top-15", s),
        href: t,
        onClick: a,
        ...e,
        ...r,
        ...n,
        children: o
      }
    );
  const p = c("btn", "margin-top-10", `btn-${u}`, s);
  return /* @__PURE__ */ i(
    "button",
    {
      className: p,
      type: "button",
      onClick: a,
      ...e,
      ...r,
      ...n,
      children: o
    }
  );
};
export {
  N as default
};
//# sourceMappingURL=StateButton.js.map
