t>
      const ANDROID_GET_TOKEN_URL =
        "{{.URLPrefix}}/api/v1/fleet/android_enterprise/enrollment_token";
      // using string comparison to satisfy the linter.
      const ANDROID_MDM_ENABLED = "{{.AndroidMDMEnabled}}" === "true";
      const MAC_MDM_ENABLED = "{{.MacMDMEnabled}}" == "true";
      const ERROR_MESSAGE = "{{.ErrorMessage}}";

      const getPlatform = () => {
        const userAgent = navigator.userAgent;
        const isIPhone = /iPhone/i.test(userAgent);
        const isIPad =
   