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