import classnames from 'classnames'; import React, { Component } from 'react'; import injectStyle from 'react-jss'; import { IWithStyle } from '../typings/generic'; interface IProps extends IWithStyle { children: React.ReactNode; className?: string; identifier: string; 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 const Wrapper = injectStyle(styles)(WrapperComponent);