Files
qrcode/src/components/CenterPanel/forms/PDFForm.tsx
T
arsam bc5c6e8ac2 Import source: src/components/CenterPanel/forms/PDFForm
Import the existing local project snapshot. This commit organizes existing files; it does not represent newly developed functionality.
2026-09-18 23:16:47 +03:30

16 lines
443 B
TypeScript

import { useQR } from '../../../context/QRContext';
import { TextInput } from '../../ui/TextInput';
export function PDFForm() {
const { state, dispatch } = useQR();
return (
<TextInput
label="PDF URL"
value={state.formData.pdf.pdfUrl}
onChange={(v) => dispatch({ type: 'SET_FORM_FIELD', qrType: 'pdf', field: 'pdfUrl', value: v })}
placeholder="https://example.com/document.pdf"
type="url"
/>
);
}