Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

SettingsRouteScreen.logic.ts

15 lines483 Bytes

1import { msg } from "gt-react-native";
2​
3import { m, type MessageResolver } from "../../i18n/messages";
4​
5export function resolveAgentAwarenessPlatformPresentation(
6 platform: string,
7 resolve: MessageResolver = m,
8): {
9 readonly supported: boolean;
10 readonly subtitle: string | undefined;
11} {
12 return platform === "ios" || platform === "android"
13 ? { supported: true, subtitle: undefined }
14 : { supported: false, subtitle: resolve(msg("Unavailable on this platform")) };