mirror of
https://github.com/mickael-kerjean/filestash
synced 2025-12-06 08:22:24 +01:00
18 lines
445 B
JavaScript
18 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>
|
|
);
|
|
}
|
|
}
|