- La capture photo sera bientôt disponible. -
- { - const file = e.target.files?.[0]; - if (file) { - const reader = new FileReader(); - reader.onload = (event) => { - const photoData = event.target?.result as string; - handlePhotoTaken(photoData); - }; - reader.readAsDataURL(file); - } - }} - className="hidden" - id="photo-upload" - /> - -