import classnames from 'classnames'; import React from 'react'; class ApplicationContent extends React.Component { render() { let classes = classnames(this.props.baseClassName, { [`${this.props.baseClassName}--${this.props.modifier}`]: this.props.baseClassName, [this.props.className]: this.props.className }); return (
{this.props.children}
); } } ApplicationContent.defaultProps = { baseClassName: 'application__panel' }; ApplicationContent.propTypes = { children: React.PropTypes.node, className: React.PropTypes.string, modifier: React.PropTypes.string }; export default ApplicationContent;