mirror of
https://github.com/zoriya/flood.git
synced 2025-12-20 14:15:15 +00:00
30 lines
693 B
JavaScript
30 lines
693 B
JavaScript
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 (
|
|
<div className={classes}>
|
|
{this.props.children}
|
|
</div>
|
|
);
|
|
}
|
|
}
|
|
|
|
ApplicationContent.defaultProps = {
|
|
baseClassName: 'application__panel'
|
|
};
|
|
|
|
ApplicationContent.propTypes = {
|
|
children: React.PropTypes.node,
|
|
className: React.PropTypes.string,
|
|
modifier: React.PropTypes.string
|
|
};
|
|
|
|
export default ApplicationContent;
|