import { Icon } from "@/components/icons"; import { LandingShell } from "@/components/landing/shell"; import type { LandingProps } from "@/components/landing/types"; import { pdfDataSchema } from "@/lib/qr/types/pdf"; import { formatBytes } from "@/lib/uploads"; export function PdfLanding({ data }: LandingProps) { const { fileId, filename, size, title, description } = pdfDataSchema.parse(data); const href = `/api/uploads/${fileId}`; return (

{filename}

PDF{size > 0 ? ` · ${formatBytes(size)}` : ""}

Dokument öffnen Herunterladen
); }