import { Icon } from "@/components/icons"; import { LandingShell } from "@/components/landing/shell"; import type { LandingProps } from "@/components/landing/types"; import { EmbeddedVideo } from "@/components/landing/video-player"; import { resolveVideoSource, videoDataSchema } from "@/lib/qr/types/video"; export function VideoLanding({ data }: LandingProps) { const { url, title, description } = videoDataSchema.parse(data); const quelle = resolveVideoSource(url); return ( Bei {quelle.label} öffnen ) : null } > {quelle.kind === "youtube" || quelle.kind === "vimeo" ? ( ) : quelle.kind === "file" ? ( ) : ( Video ansehen {quelle.label} )} ); }