+export const isProjectRoute = ({ router }: RootState) => {
+ const pathname = router.location ? router.location.pathname : '';
+ const match = matchProjectRoute(pathname);
+ return !!match;
+};
+
+interface Properties {
+ breadcrumbs: Array<{ uuid: string, label: string }>;
+}
+
+export const isItemNotInProject = (properties: Properties) => {
+ if (properties.breadcrumbs) {
+ const isItemSharedWithMe = properties.breadcrumbs[0].label !== 'Projects';
+ return isItemSharedWithMe;
+ } else {
+ return false;
+ }
+};
+
+export const isNotProjectItem = () => {
+ return isItemNotInProject || !isProjectRoute;
+};
+