@mantine/core
Version:
React components library focused on usability, accessibility and developer experience
15 lines (14 loc) • 463 B
JavaScript
"use client";
//#region packages/@mantine/core/src/core/Box/get-style-object/get-style-object.ts
function getStyleObject(style, theme) {
if (Array.isArray(style)) return [...style].reduce((acc, item) => ({
...acc,
...getStyleObject(item, theme)
}), {});
if (typeof style === "function") return style(theme);
if (style == null) return {};
return style;
}
//#endregion
exports.getStyleObject = getStyleObject;
//# sourceMappingURL=get-style-object.cjs.map