Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const SubstyleJss = ({ classes, sheet, style, className, ...rest }) => {
return createElement(WrappedComponent, {
style: createSubstyle(
{
style,
className,
classNames: classes,
},
createPropsDecorator(sheet)
),
...rest,
})
}
export const asDataClasses = style =>
createSubstyle({ style }, decorateAsClasses)
export const asDataAttributes = style =>
createSubstyle({ style }, decorateAsDataAttributes)