Import source: src/components/CenterPanel/forms/ImageForm

Import the existing local project snapshot. This commit organizes existing files; it does not represent newly developed functionality.
This commit is contained in:
arsam
2026-09-18 23:16:43 +03:30
parent f7681bf142
commit 848dcd7900
@@ -0,0 +1,15 @@
import { useQR } from '../../../context/QRContext';
import { TextInput } from '../../ui/TextInput';
export function ImageForm() {
const { state, dispatch } = useQR();
return (
<TextInput
label="Image URL"
value={state.formData.image.imageUrl}
onChange={(v) => dispatch({ type: 'SET_FORM_FIELD', qrType: 'image', field: 'imageUrl', value: v })}
placeholder="https://example.com/image.jpg"
type="url"
/>
);
}