The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
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);
};