synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
47 lines (46 loc) • 1.37 kB
JavaScript
import { jsx as e, jsxs as t, Fragment as s } from "react/jsx-runtime";
import { Typography as c, FormControlLabel as u, Checkbox as m } from "@mui/material";
import { useState as d } from "react";
import { WarningDialog as h } from "../SynapseForm/WarningDialog.js";
function C({
open: n,
onConfirm: r,
onCancel: i
}) {
const [o, a] = d(!1);
return /* @__PURE__ */ e(
h,
{
title: "Delete Evaluation Queue?",
content: /* @__PURE__ */ t(s, { children: [
/* @__PURE__ */ t(c, { pb: 2, children: [
/* @__PURE__ */ e("strong", { children: "Warning" }),
": Deleting this evaluation queue will also permanently erase all associated submissions and scores. This action is irreversible."
] }),
/* @__PURE__ */ e(
u,
{
control: /* @__PURE__ */ e(
m,
{
checked: o,
onChange: (l) => a(l.target.checked)
}
),
label: "I understand and wish to proceed."
}
)
] }),
open: n,
confirmButtonText: "Delete",
confirmButtonColor: "error",
confirmButtonDisabled: !o,
onConfirm: r,
onCancel: i
}
);
}
export {
C as DeleteEvaluationQueueConfirmationDialog
};
//# sourceMappingURL=DeleteEvaluationQueueConfirmationDialog.js.map