UNPKG

@mantine/core

Version:

React components library focused on usability, accessibility and developer experience

20 lines (18 loc) 401 B
'use client'; 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; } export { getStyleObject }; //# sourceMappingURL=get-style-object.mjs.map