text: export default () => {
      const fileInputs = document.querySelectorAll(".js-file")
      if(fileInputs){
          Array.from(fileInputs).forEach(input=>{        
              input.addEventListener("change", (ev) => {
                  let img = new Image();
                  const files = ev.target.files;
                  const file = files[0];
                  if (file.type.match('image.*')) {
                      var reader = new FileReader();
                      // Read in the image file as a data URL.
                      reader.readAsDataURL(file);
                      reader.onload = function (evt) {
                          if (evt.target.readyState == FileReader.DONE) {
                              img.src = evt.target.result;
                          }
                          input.nextElementSibling.value = evt.target.result;
                          const previewImg = document.querySelector(".preview-image-js")
                          if(previewImg){
                              previewImg.src = evt.target.result;
                          }
                      }
          
                  } else {
                      alert("not an image");
                  }
              })
          })
      }
  }