import { Checkbox, MessageModalLayout, Text, WixDesignSystemProvider } from "@wix/design-system";
import React, { useContext } from "react";
import { RicosContext } from "./../../ricos-context/index.js";
import { AI_MODAL_DISCARD_MODAL } from "../data-hooks.js";
const DiscardConfirmationModal = ({
  closeModal
}) => {
  const { t } = useContext(RicosContext);
  const [dontShowAgain, setDontShowAgain] = React.useState(false);
  return /* @__PURE__ */ React.createElement(WixDesignSystemProvider, { features: { newColorsBranding: true } }, /* @__PURE__ */ React.createElement(
    MessageModalLayout,
    {
      dataHook: AI_MODAL_DISCARD_MODAL,
      onCloseButtonClick: () => closeModal({ confirmed: false }),
      primaryButtonOnClick: () => {
        closeModal({ confirmed: true, dontShowAgain });
      },
      secondaryButtonOnClick: () => closeModal({ confirmed: false }),
      primaryButtonText: t("AIPlugin_DiscardModal_PrimaryButton_Text"),
      secondaryButtonText: t("AIPlugin_DiscardModal_SecondaryButton_Text"),
      title: t("AIPlugin_DiscardModal_Title"),
      content: /* @__PURE__ */ React.createElement(Text, null, t("AIPlugin_DiscardModal_Content")),
      sideActions: /* @__PURE__ */ React.createElement(Checkbox, { checked: dontShowAgain, onChange: () => setDontShowAgain(!dontShowAgain) }, t("AIPlugin_DiscardModal_DontShowAgain"))
    }
  ));
};
export {
  DiscardConfirmationModal
};
//# sourceMappingURL=discard-confirmation-modal.js.map
