@transkripid/flowbite-react
Version:
Official React components built for Flowbite and Tailwind CSS - Transkrip.id fork
34 lines (33 loc) • 1.15 kB
JavaScript
import { jsx as p } from "react/jsx-runtime";
import { c as n } from "react/compiler-runtime";
import { twMerge as b } from "tailwind-merge";
import { mergeDeep as h } from "../../helpers/merge-deep.mjs";
import { useSidebarContext as u } from "./SidebarContext.mjs";
const x = (a) => {
const e = n(15);
let s, m, i, t;
e[0] !== a ? ({
children: s,
className: m,
theme: t,
...i
} = a, e[0] = a, e[1] = s, e[2] = m, e[3] = i, e[4] = t) : (s = e[1], m = e[2], i = e[3], t = e[4]);
let r;
e[5] !== t ? (r = t === void 0 ? {} : t, e[5] = t, e[6] = r) : r = e[6];
const c = r, {
theme: d
} = u();
let o;
if (e[7] !== m || e[8] !== c || e[9] !== d.items) {
const f = h(d.items, c);
o = b(f.base, m), e[7] = m, e[8] = c, e[9] = d.items, e[10] = o;
} else
o = e[10];
let l;
return e[11] !== s || e[12] !== i || e[13] !== o ? (l = /* @__PURE__ */ p("div", { className: o, "data-testid": "flowbite-sidebar-items", ...i, children: s }), e[11] = s, e[12] = i, e[13] = o, e[14] = l) : l = e[14], l;
};
x.displayName = "Sidebar.Items";
export {
x as SidebarItems
};
//# sourceMappingURL=SidebarItems.mjs.map