Some checks are pending
E2E / Playwright e2e (push) Waiting to run
- 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.
14 lines
566 B
TypeScript
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}`
|
|
}
|