Files
qrcode/src/components/CenterPanel/forms/MP3Form.tsx
T
arsam 561111ae6c Import source: src/components/CenterPanel/forms/MP3Form
Import the existing local project snapshot. This commit organizes existing files; it does not represent newly developed functionality.
2026-09-18 23:16:45 +03:30

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"
/>
);
}