import { useContext, useMemo } from 'react';
import { PageContext } from '../../PageContext';
import { classNames } from '../../utils/classNames';
import { pageContentClassnames } from '../constants';
export const useLogic = ({ header }) => {
    const { hasAside } = useContext(PageContext);
    const contentClassnames = useMemo(() => classNames(pageContentClassnames.content, {
        [pageContentClassnames.contentHasHeader]: Boolean(header),
    }), [header]);
    return { contentClassnames, hasAside };
};
