Import the existing local project snapshot. This commit organizes existing files; it does not represent newly developed functionality.
16 lines
440 B
TypeScript
16 lines
440 B
TypeScript
import { useQR } from '../../../context/QRContext';
|
|
import { TextInput } from '../../ui/TextInput';
|
|
|
|
export function MP3Form() {
|
|
const { state, dispatch } = useQR();
|
|
return (
|
|
<TextInput
|
|
label="MP3 URL"
|
|
value={state.formData.mp3.mp3Url}
|
|
onChange={(v) => dispatch({ type: 'SET_FORM_FIELD', qrType: 'mp3', field: 'mp3Url', value: v })}
|
|
placeholder="https://example.com/audio.mp3"
|
|
type="url"
|
|
/>
|
|
);
|
|
}
|