mirror of
				https://github.com/mickael-kerjean/filestash.git
				synced 2025-11-04 13:35:46 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			525 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			525 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>
 | 
						|
        );
 | 
						|
    }
 | 
						|
}
 |