@stanfordspezi/spezi-web-design-system
Version:
Stanford Biodesign Digital Health Spezi Web Design System
32 lines (31 loc) • 985 B
JavaScript
import { jsx as o, jsxs as e, Fragment as t } from "react/jsx-runtime";
import { B as a } from "./Button-CvQ4tVYH.mjs";
import { D as s, e as c, f as d, h as D, i as g, g as h } from "./Dialog-CC06MZEJ.mjs";
const p = ({
entityName: r,
itemName: i,
onDelete: n,
...l
}) => /* @__PURE__ */ o(s, { ...l, children: /* @__PURE__ */ e(c, { children: [
/* @__PURE__ */ e(d, { children: [
/* @__PURE__ */ e(D, { children: [
"Deleting ",
r
] }),
/* @__PURE__ */ e(g, { children: [
"Are you sure you want to proceed? This action cannot be undone.",
i && /* @__PURE__ */ e(t, { children: [
/* @__PURE__ */ o("br", {}),
/* @__PURE__ */ o("b", { className: "text-foreground font-medium", children: i }),
" will be deleted forever."
] })
] })
] }),
/* @__PURE__ */ o(h, { children: /* @__PURE__ */ e(a, { onClick: n, variant: "destructive", children: [
"Delete ",
r
] }) })
] }) });
export {
p as C
};