koval-ui
Version:
React components collection with minimalistic design. Supports theming, layout, and input validation.
7 lines (6 loc) • 418 B
JavaScript
"use client";
const s = (r) => typeof r == "boolean" ? "'src'" : r === "self" ? "'self'" : r === "src" ? "'src'" : r === "none" ? "'none'" : r, t = (r) => Object.entries(r).filter(([e, n]) => n !== !1).map(([e, n]) => Array.isArray(n) ? [e, n] : [e, [n]]).map(([e, n]) => [e, n.map(s).join(" ")]).map((e) => e.join(" ")).join("; ");
export {
t as convertPermissions
};
//# sourceMappingURL=convertPermissions.js.map