Download mobile/src/utils/pairing/g2Recovery.ts from Anirudh1950/MentraOS: direct link, hf CLI and curl.
- Browser
- Download file 524 Bytes
-
https://huggingface.co/Anirudh1950/MentraOS/resolve/main/mobile/src/utils/pairing/g2Recovery.ts
- Command line
-
hf download hf://Anirudh1950/MentraOS/mobile/src/utils/pairing/g2Recovery.ts
-
curl -L -o g2Recovery.ts https://huggingface.co/Anirudh1950/MentraOS/resolve/main/mobile/src/utils/pairing/g2Recovery.ts
524 Bytes
| import {translate} from "@/i18n" | |
| export function getG2ResetInstructions(): string { | |
| return `${translate("pairing:g2ResetInstructions")}\n\n${translate("pairing:g2ResetOlderHardware")}` | |
| } | |
| export function isG2RecoveryError( | |
| error: unknown, | |
| ): error is "errors:g2LeftArmUnavailable" | "errors:g2RightArmUnavailable" | "errors:g2ConnectionTimedOut" { | |
| return ( | |
| error === "errors:g2LeftArmUnavailable" || | |
| error === "errors:g2RightArmUnavailable" || | |
| error === "errors:g2ConnectionTimedOut" | |
| ) | |
| } | |