mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2025-11-03 04:50:14 +08:00
19 lines
517 B
JavaScript
19 lines
517 B
JavaScript
import React from "react";
|
|
import "./container.scss";
|
|
|
|
export class Container extends React.Component {
|
|
constructor(props){
|
|
super(props);
|
|
}
|
|
render() {
|
|
const style = this.props.maxWidth ? {maxWidth: this.props.maxWidth} : {};
|
|
let className = "component_container";
|
|
if(this.props.className) className += " "+this.props.className;
|
|
return (
|
|
<div className={className} style={style}>
|
|
{this.props.children}
|
|
</div>
|
|
);
|
|
}
|
|
}
|