import { j as r } from "../../../../_virtual/jsx-runtime.js";
import { BottomSheetFooterWrapper as b } from "./styles.js";
import { Button as u } from "../../../Button/index.js";
import { getId as d } from "../../../../utils/index.js";
function j({
  stackedActionButtons: e,
  pinnedFooter: p,
  primaryAction: t,
  dismissAction: o,
  id: a,
  ...i
}) {
  const m = d(`${i["data-testid"]}-bottom-sheet-footer`), s = d(`${i["data-trackid"]}-bottom-sheet-footer`), n = d(a);
  return /* @__PURE__ */ r.jsxs(
    b,
    {
      pinnedFooter: p,
      stackedActionButtons: e,
      id: a,
      children: [
        t && o && /* @__PURE__ */ r.jsx(
          u,
          {
            role: "button",
            ...o,
            variant: "ghost",
            size: "medium",
            "data-testid": m("dismiss-button"),
            "data-trackid": s("dismiss-button"),
            id: n("dismiss-button"),
            fullWidth: e,
            children: o.text
          }
        ),
        t && /* @__PURE__ */ r.jsx(
          u,
          {
            role: "button",
            ...t,
            size: "medium",
            "data-testid": m("primary-button"),
            "data-trackid": s("primary-button"),
            id: n("primary-button"),
            fullWidth: e,
            children: t.text
          }
        )
      ]
    }
  );
}
export {
  j as BottomSheetFooter
};
