@cgi-learning-hub/ui
Version:
@cgi-learning-hub/ui is an open-source React component library that implements UI for HUB's features
32 lines (31 loc) • 765 B
JavaScript
import { jsxs as t, jsx as e } from "react/jsx-runtime";
import { C as a } from "../../CloseRounded-CioV1GK3.js";
import { IconButton as s } from "@mui/material";
import { D as r } from "../../Dialog-DEWB041V.js";
const f = ({
children: i,
showCloseButton: n = !0,
...o
}) => /* @__PURE__ */ t(r, { ...o, children: [
n ? /* @__PURE__ */ e(
s,
{
"aria-label": "close",
onClick: () => {
var l;
return (l = o.onClose) == null ? void 0 : l.call(o, {}, "escapeKeyDown");
},
sx: {
position: "absolute",
right: 15,
top: 15,
color: (l) => l.palette.text.primary
},
children: /* @__PURE__ */ e(a, { color: "inherit" })
}
) : null,
i
] });
export {
f as default
};