import React from "react";

import PropTypes from 'prop-types'



const Wrapper = ({bg, padding ,children, hideOverflow}) => {
    return (
        <div className={(bg ? "bg-baby-blue dark:bg-dg-primary-1600 h-fit" : "")+(padding)+(hideOverflow ? ' overflow-hidden' : '')}>
            <div className="max-w-custom relative mx-auto px-16p">
            {children}
        </div>
        </div>

    )
}
Wrapper.propTypes = {
    bg: PropTypes.bool,
    padding: PropTypes.string,
    children: PropTypes.node,
}
export default Wrapper;







