@veecode-platform/plugin-kong-service-manager
Version:
22 lines (19 loc) • 1.11 kB
JavaScript
import React from 'react';
import { Dialog, DialogTitle, DialogContent, DialogContentText, DialogActions, Button } from '@material-ui/core';
const ConfirmDeleteDialog = (props) => {
const { show, handleClose, handleSubmit } = props;
return /* @__PURE__ */ React.createElement(
Dialog,
{
open: show,
onClose: handleClose,
"aria-labelledby": "alert-dialog-title",
"aria-describedby": "alert-dialog-description"
},
/* @__PURE__ */ React.createElement(DialogTitle, { id: "alert-dialog-title" }, "Are you sure to delete this route??"),
/* @__PURE__ */ React.createElement(DialogContent, null, /* @__PURE__ */ React.createElement(DialogContentText, { id: "alert-dialog-description" }, "This action cannot be undone")),
/* @__PURE__ */ React.createElement(DialogActions, null, /* @__PURE__ */ React.createElement(Button, { onClick: handleClose }, "Cancel"), /* @__PURE__ */ React.createElement(Button, { onClick: handleSubmit, style: { color: "#ED4337" } }, "Delete"))
);
};
export { ConfirmDeleteDialog };
//# sourceMappingURL=ConfirmDeleteDialog.esm.js.map