import { CSSProperties, FC, ReactNode } from "react";
import classNames from "classnames";
import { Box } from "@mantine/core";
import styles from "@/components/layout/SmallPageBlock/SmallPageBlock.module.css";

type Props = {
    children: ReactNode;
    style?: CSSProperties;
    active?: boolean;
};

const SmallPageBlock: FC<Props> = ({ children, style, active = false }) => {
    return (
        <Box
            className={classNames(
                styles.container,
                active && styles["container-active"]
            )}
            style={style}>
            {children}
        </Box>
    );
};
export default SmallPageBlock;
