 e);
      });

      async function openToast(opts) {
        const toast = await toastController.create(opts);
        await toast.present();
      }

      async function openToastWithButtonOptions() {
        const opts = {
          message: 'click to close',
          buttons: [
            {
              side: 'start',
              icon: 'star',
              handler: () => {
                console.log('favorite button clicked!');
                return false;
              },
            },
     