Files
lcbp3.np-dms.work/n8n-cache/n8n/public/assets/useProjectPages-xv6Eq2Y5.js
2025-09-21 20:29:15 +07:00

18 lines
618 B
JavaScript
Executable File

import { a2 as useRoute, x as computed, V as VIEWS, d0 as reactive } from "./index-CeNA_ukL.js";
const useProjectPages = () => {
const route = useRoute();
const isProjectsSubPage = computed(() => route.params?.projectId !== void 0);
const isOverviewSubPage = computed(() => route.params?.projectId === void 0);
const isSharedSubPage = computed(
() => route.name === VIEWS.SHARED_WITH_ME || route.name === VIEWS.SHARED_WORKFLOWS || route.name === VIEWS.SHARED_CREDENTIALS
);
return reactive({
isOverviewSubPage,
isSharedSubPage,
isProjectsSubPage
});
};
export {
useProjectPages as u
};