import { j as t } from "../../../_virtual/jsx-runtime.js";
import { getId as n } from "../../../utils/index.js";
import { Button as l } from "../../Button/index.js";
function x({
  primaryAction: r,
  dismissAction: a,
  variant: e,
  stackedActionButtons: d,
  ...i
}) {
  const s = n(i["data-testid"]), o = n(i["data-trackid"]);
  return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
    a && /* @__PURE__ */ t.jsx(
      l,
      {
        role: "button",
        variant: "ghost",
        fullWidth: d,
        ...a,
        size: e === "narrow" ? "small-expressive" : "large",
        "data-testid": s("action-dismiss"),
        "data-trackid": o("action-dismiss"),
        children: a.text
      }
    ),
    /* @__PURE__ */ t.jsx(
      l,
      {
        role: "button",
        fullWidth: d,
        ...r,
        size: e === "narrow" ? "small-expressive" : "large",
        "data-testid": s("action-primary"),
        "data-trackid": o("action-primary"),
        children: r.text
      }
    )
  ] });
}
export {
  x as ModalActions
};
