The best way to control Claude Code, Codex and more from any computer or phone

main
ts 7 lines 275 Bytes
Raw
1 import type { ProjectScript } from "@t3tools/contracts";
2
3 export function getConfiguredPreviewUrls(
4 scripts: ReadonlyArray<ProjectScript> | undefined,
5 ): ReadonlyArray<string> {
6 return scripts?.flatMap((script) => (script.previewUrl ? [script.previewUrl] : [])) ?? [];
7 }