diff --git a/src/components/CenterPanel/forms/AppForm.tsx b/src/components/CenterPanel/forms/AppForm.tsx new file mode 100644 index 0000000..4a94f9d --- /dev/null +++ b/src/components/CenterPanel/forms/AppForm.tsx @@ -0,0 +1,15 @@ +import { useQR } from '../../../context/QRContext'; +import { TextInput } from '../../ui/TextInput'; + +export function AppForm() { + const { state, dispatch } = useQR(); + return ( + dispatch({ type: 'SET_FORM_FIELD', qrType: 'app', field: 'appStoreLink', value: v })} + placeholder="https://apps.apple.com/... or https://play.google.com/..." + type="url" + /> + ); +}