mirror of
https://github.com/mickael-kerjean/filestash
synced 2025-12-06 16:32:31 +01:00
16 lines
456 B
JavaScript
16 lines
456 B
JavaScript
import React from 'react'
|
|
import PropTypes from 'prop-types';
|
|
|
|
export class Container extends React.Component {
|
|
constructor(props){
|
|
super(props);
|
|
}
|
|
render() {
|
|
const style = Object.assign({width: '95%', maxWidth: this.props.maxWidth || '800px', margin: '0 auto', padding: '10px'}, this.props.style || {});
|
|
return (
|
|
<div style={style}>
|
|
{this.props.children}
|
|
</div>
|
|
);
|
|
}
|
|
}
|