import {CSSProperties, FC, ReactNode} from "react";
import styles from './PageBlock.module.css';
import classNames from "classnames";

type Props = {
    children: ReactNode
    fluid?: boolean;
    style?: CSSProperties;
    fullHeight?: boolean;
    fullHeightFixed?: boolean;
}
export const PageBlock: FC<Props> = ({children, style, fluid = true, fullHeight = false, fullHeightFixed = false}) => {
    return (
        <div style={style}
             className={
                 classNames(
                     styles['container'],
                     fluid && styles['container-fluid'],
                     fullHeight && styles['container-full-height'],
                     fullHeightFixed && styles['container-full-height-fixed']
                 )
             }>
            {children}
        </div>
    )
}
export default PageBlock;