Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// Heads Up! Keep in sync with renderComponent.tsx
const styleParam = {
theme: { direction: theme.rtl ? 'rtl' : 'ltr' },
}
const className = theme.renderer.renderRule(getConfig, styleParam)
return children({ className })
}
Design.displayName = 'Design'
Design.propTypes = {
children: PropTypes.func.isRequired,
config: customPropTypes.design.isRequired,
}
export default Design