UNPKG

dgz-ui

Version:

Custom ui library using React.js, Shadcn/ui, TailwindCSS, Typescript

31 lines (30 loc) 620 B
import * as l from "react"; function s(n, o) { if (typeof n == "function") return n(o); n != null && (n.current = o); } function f(...n) { return (o) => { let u = !1; const c = n.map((t) => { const e = s(t, o); return !u && typeof e == "function" && (u = !0), e; }); if (u) return () => { for (let t = 0; t < c.length; t++) { const e = c[t]; typeof e == "function" ? e() : s(n[t], null); } }; }; } function i(...n) { return l.useCallback(f(...n), n); } export { f as c, i as u }; //# sourceMappingURL=index-DLcqcWxM.es.js.map