Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return theme => {
const p = { theme }
function parseStyle(style) {
if (typeof style === 'object') {
style = css(style)
}
return cascade(style, p)
}
if (Array.isArray(styles)) {
return flatten(styles).map(parseStyle)
}
return parseStyle(styles)
}
}