diff --git a/src/components/CenterPanel/forms/PDFForm.tsx b/src/components/CenterPanel/forms/PDFForm.tsx new file mode 100644 index 0000000..c34c3db --- /dev/null +++ b/src/components/CenterPanel/forms/PDFForm.tsx @@ -0,0 +1,15 @@ +import { useQR } from '../../../context/QRContext'; +import { TextInput } from '../../ui/TextInput'; + +export function PDFForm() { + const { state, dispatch } = useQR(); + return ( + dispatch({ type: 'SET_FORM_FIELD', qrType: 'pdf', field: 'pdfUrl', value: v })} + placeholder="https://example.com/document.pdf" + type="url" + /> + ); +}