mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2025-10-29 17:18:43 +08:00
17 lines
456 B
JavaScript
17 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>
|
|
);
|
|
}
|
|
}
|