       /iPad/i.test(userAgent) ||
          (/Macintosh/i.test(userAgent) &&
            navigator.maxTouchPoints !== undefined &&
            navigator.maxTouchPoints > 1);
        const isAndroid = /Android/i.test(userAgent);

        if (isAndroid) {
          return "android";
        } else if (isIPhone) {
          return "ios";
        } else if (isIPad) {
          return "ipad";
        }

        return "unsupported";
      };

      const getTemplateIdFromPlatform = (platform) => {
        let te