Open History to see the last commit
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")) };
15}