        if (role === 'confirm') {
          document.querySelector('#message').innerHTML = `Hello, ${data}!`;
        }
      };

      function cancel() {
        modalController.dismiss(null, 'cancel');
      }

      function confirm() {
        const input = document.querySelector('ion-input');
        modalController.dismiss(input.value, 'confirm');
      }
    </script>
  </body>
</html>
