import { jsx as o } from "react/jsx-runtime";
import i from "../releaseNotes/ReleaseNotes.js";
import m from "../button/Button.js";
import c from "./Dialog.js";
const l = (e) => {
  window.localStorage.setItem(e.RELEASE_NOTES_ITEM, e.currentVersion), e.setShowReleaseNotes(!1);
}, N = (e, t) => /* @__PURE__ */ o("span", { children: e || t }), R = (e) => {
  const { moduleName: t, whatsNewTitle: s, closeButtonText: a, translatedReleaseNotes: r, useOverflow: n = !0 } = e;
  return /* @__PURE__ */ o(
    c,
    {
      show: e.showReleaseNotes,
      useOverflow: n,
      title: N(t, s),
      subtitle: t && s,
      body: /* @__PURE__ */ o(i, { releaseNotes: r }),
      footer: /* @__PURE__ */ o(m, { onClick: () => l(e), children: a || "Close" }),
      onClose: () => l(e)
    }
  );
};
export {
  R as default
};
//# sourceMappingURL=ReleaseNotesDialog.js.map
