Skip to content

The open alternative to Salesforce, designed for AI.

521 B
Raw Blame
import { type DraftPageLayout } from '@/page-layout/types/DraftPageLayout';
import { type PageLayout } from '@/page-layout/types/PageLayout';

export const toDraftPageLayout = (pageLayout: PageLayout): DraftPageLayout => ({
  id: pageLayout.id,
  name: pageLayout.name,
  type: pageLayout.type,
  objectMetadataId: pageLayout.objectMetadataId,
  tabs: pageLayout.tabs,
  defaultTabToFocusOnMobileAndSidePanelId:
    pageLayout.defaultTabToFocusOnMobileAndSidePanelId,
  isFirstTabPinned: pageLayout.isFirstTabPinned,
});