import { r as reactExports, j as jsxRuntimeExports, D as Dialog, l as DialogContent, m as DialogContentText, S as Slide } from "./index-D15x63tD.js";
const Transition = reactExports.forwardRef(function Transition2(props, ref) {
  return /* @__PURE__ */ jsxRuntimeExports.jsx(Slide, { direction: "up", ref, ...props });
});
function AlertDialogSlide(props) {
  const [open, setOpen] = reactExports.useState(false);
  const handleClose = () => {
    setOpen(false);
    if (props.status === true) {
      window.history.back();
    }
  };
  return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
    Dialog,
    {
      open,
      TransitionComponent: Transition,
      keepMounted: true,
      onClose: handleClose,
      "aria-describedby": "alert-dialog-slide-description",
      children: /* @__PURE__ */ jsxRuntimeExports.jsx(DialogContent, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(DialogContentText, { id: "alert-dialog-slide-description", children: props.message }) })
    }
  ) });
}
export {
  AlertDialogSlide as A
};
//# sourceMappingURL=Alert-Bz9RX1jF.js.map
