ultisuite-client/lib/demo/demo-drive-layout-preview.ts
R3D347HR4Y efaaf16f60
Some checks are pending
E2E / Playwright e2e (push) Waiting to run
feat: update metadata and layout for new product pages
- Refactored metadata for contacts, administration, and Ulticards pages to utilize dynamic app names and descriptions.
- Introduced new product pages for Ultiai, Ultical, Ulticards, Ultidrive, Ultimail, and Ultimeet with appropriate metadata.
- Enhanced layout components to ensure consistent styling and functionality across new product sections.
- Updated various components to replace hardcoded labels with dynamic references to improve maintainability and consistency.
2026-06-19 22:11:42 +02:00

14 lines
566 B
TypeScript

export type DemoDriveLayoutPreview = "phone" | "tablet" | "desktop"
export function getDemoDriveLayoutPreview(): DemoDriveLayoutPreview | null {
if (typeof window === "undefined") return null
if (!window.location.pathname.includes("/demo/drive")) return null
const param = new URLSearchParams(window.location.search).get("preview")
if (param === "phone" || param === "tablet" || param === "desktop") return param
return null
}
export function demoDriveLayoutPreviewSrc(layout: DemoDriveLayoutPreview): string {
return `/demo/drive?preview=${layout}`
}