import classnames from 'classnames'; import { Component, ReactNode } from 'react'; import injectStyle, { WithStylesProps } from 'react-jss'; // eslint-disable-next-line no-use-before-define interface IProps extends WithStylesProps { children: ReactNode; className?: string; identifier: string; // eslint-disable-next-line react/no-unused-prop-types noMargin?: boolean; } const styles = { container: { marginBottom: (props: IProps) => (props.noMargin ? 0 : 20), }, }; class WrapperComponent extends Component { render() { const { children, classes, className, identifier } = this.props; return (
{children}
); } } export default injectStyle(styles, { injectTheme: true })(WrapperComponent);