import React from 'react';
import classNames from 'classnames';
export const SoftPageBody = ({ children, maxWidth, restrictWidth = false, style, className, ...rest }) => {
    let widthClassname;
    let newStyle;
    if (restrictWidth === true) {
        widthClassname = 'softPageBody--restrictWidth-default';
    }
    else if (restrictWidth !== false) {
        widthClassname = 'softPageBody--restrictWidth-custom';
        const value = typeof maxWidth === 'number' ? `${restrictWidth}px` : restrictWidth;
        newStyle = { ...style, maxWidth: value };
    }
    const classes = classNames('softPageBody', widthClassname, className);
    return (React.createElement("div", Object.assign({ className: classes, style: newStyle || style }, rest), children));
};
//# sourceMappingURL=page_body.js.map