Skip to contentOpen History to see the last commit
previewEmptyStateLogic.ts
7 lines275 Bytes
1import type { ProjectScript } from "@t3tools/contracts"; 3export function getConfiguredPreviewUrls( 4 scripts: ReadonlyArray<ProjectScript> | undefined, 5): ReadonlyArray<string> { 6 return scripts?.flatMap((script) => (script.previewUrl ? [script.previewUrl] : [])) ?? [];