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