Skip to content

The open alternative to Salesforce, designed for AI.

333 B
Raw Blame
import { useLocation } from 'react-router-dom';

import { isAiModePath } from '~/utils/isAiModePath';
import { isSettingsPath } from '~/utils/isSettingsPath';

export const useIsLayoutCustomizationAllowedOnCurrentPage = () => {
  const { pathname } = useLocation();

  return !isAiModePath(pathname) && !isSettingsPath(pathname);
};