mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2025-10-31 01:58:11 +08:00
19 lines
445 B
JavaScript
19 lines
445 B
JavaScript
import React from 'react';
|
|
import PropTypes from 'prop-types';
|
|
|
|
import './container.scss';
|
|
|
|
export class Container extends React.Component {
|
|
constructor(props){
|
|
super(props);
|
|
}
|
|
render() {
|
|
const style = this.props.maxWidth ? {maxWidth: this.props.maxWidth} : {};
|
|
return (
|
|
<div className="component_container" style={style}>
|
|
{this.props.children}
|
|
</div>
|
|
);
|
|
}
|
|
}
|