Skip to content

The open alternative to Salesforce, designed for AI.

323 B
Raw Blame
import { isWidgetViewType } from 'twenty-shared/utils';

import { type View } from '@/views/types/View';
import { ViewVisibility } from '~/generated-metadata/graphql';

export const isViewDisplayableInNavigationMenu = (view: View): boolean =>
  !isWidgetViewType(view.type) && view.visibility === ViewVisibility.WORKSPACE;