UNPKG

@transkripid/flowbite-react

Version:

Official React components built for Flowbite and Tailwind CSS - Transkrip.id fork

34 lines (33 loc) 1.12 kB
import { jsx as a } from "react/jsx-runtime"; import { c as h } from "react/compiler-runtime"; import { twMerge as u } from "tailwind-merge"; import { mergeDeep as b } from "../../helpers/merge-deep.mjs"; import { useModalContext as y } from "./ModalContext.mjs"; const T = (i) => { const e = h(16); let t, m, r, o; e[0] !== i ? ({ children: t, className: m, theme: o, ...r } = i, e[0] = i, e[1] = t, e[2] = m, e[3] = r, e[4] = o) : (t = e[1], m = e[2], r = e[3], o = e[4]); let l; e[5] !== o ? (l = o === void 0 ? {} : o, e[5] = o, e[6] = l) : l = e[6]; const c = l, { theme: d, popup: f } = y(); let s; if (e[7] !== m || e[8] !== c || e[9] !== f || e[10] !== d.body) { const n = b(d.body, c); s = u(n.base, f && [n.popup], m), e[7] = m, e[8] = c, e[9] = f, e[10] = d.body, e[11] = s; } else s = e[11]; let p; return e[12] !== t || e[13] !== r || e[14] !== s ? (p = /* @__PURE__ */ a("div", { className: s, ...r, children: t }), e[12] = t, e[13] = r, e[14] = s, e[15] = p) : p = e[15], p; }; export { T as ModalBody }; //# sourceMappingURL=ModalBody.mjs.map