UNPKG

@transkripid/flowbite-react

Version:

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

36 lines (35 loc) 1.29 kB
import { jsx as d, jsxs as w, Fragment as x } from "react/jsx-runtime"; import { c as D } from "react/compiler-runtime"; import { twMerge as g } from "tailwind-merge"; import { useDropdownContext as u } from "./DropdownContext.mjs"; import { DropdownDivider as v } from "./DropdownDivider.mjs"; const y = (f) => { const e = D(17); let o, r, l, t; e[0] !== f ? ({ children: o, className: r, theme: t, ...l } = f, e[0] = f, e[1] = o, e[2] = r, e[3] = l, e[4] = t) : (o = e[1], r = e[2], l = e[3], t = e[4]); let i; e[5] !== t ? (i = t === void 0 ? {} : t, e[5] = t, e[6] = i) : i = e[6]; const p = i, { theme: h } = u(), a = p.header ?? h.floating.header; let m; e[7] !== r || e[8] !== a ? (m = g(a, r), e[7] = r, e[8] = a, e[9] = m) : m = e[9]; let s; e[10] !== o || e[11] !== l || e[12] !== m ? (s = /* @__PURE__ */ d("div", { className: m, ...l, children: o }), e[10] = o, e[11] = l, e[12] = m, e[13] = s) : s = e[13]; let n; e[14] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ d(v, {}), e[14] = n) : n = e[14]; let c; return e[15] !== s ? (c = /* @__PURE__ */ w(x, { children: [ s, n ] }), e[15] = s, e[16] = c) : c = e[16], c; }; export { y as DropdownHeader }; //# sourceMappingURL=DropdownHeader.mjs.map