OpenInApp: Support steam; integrate with SpotifyControls & ShowConnections

This commit is contained in:
V 2023-06-29 16:06:21 +02:00
parent e12c0e546c
commit 73354973a3
No known key found for this signature in database
GPG key ID: A1DC0CFB5615D905
9 changed files with 149 additions and 19 deletions

View file

@ -77,6 +77,17 @@ export const Toasts = {
}
};
/**
* Show a simple toast. If you need more options, use Toasts.show manually
*/
export function showToast(message: string, type = ToastType.MESSAGE) {
Toasts.show({
id: Toasts.genId(),
message,
type
});
}
export const UserUtils = {
fetchUser: findByCodeLazy(".USER(", "getUser") as (id: string) => Promise<User>,
};