"use client"; import { Icon } from "@/components/icons"; import { FileField } from "@/components/qr-forms/file-field"; import type { QrFormProps } from "@/components/qr-forms/types"; import { Field, TextArea, TextInput } from "@/components/ui"; import { formatBytes } from "@/lib/uploads.shared"; export function PdfForm({ value, onChange, error, disabled }: QrFormProps) { const fileId = typeof value.fileId === "string" ? value.fileId : ""; const filename = typeof value.filename === "string" ? value.filename : ""; const size = typeof value.size === "number" ? value.size : 0; const title = typeof value.title === "string" ? value.title : ""; const description = typeof value.description === "string" ? value.description : ""; return (
{filename || "Dokument"}
{size > 0 ? formatBytes(size) : "PDF"}
{error}
) : (Die Datei liegt anschließend hier und ist über den Code erreichbar. Sie lässt sich jederzeit austauschen, ohne den Code neu zu drucken.
)}