UNPKG

synapse-react-client

Version:

[![npm version](https://badge.fury.io/js/synapse-react-client.svg)](https://badge.fury.io/js/synapse-react-client) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettie

47 lines (46 loc) 1.37 kB
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