[Toasts] Implement

This commit is contained in:
Beef 2022-10-23 00:51:18 +01:00
parent 111720806c
commit 9f1fe6313d
3 changed files with 24 additions and 1 deletions

8
src/ui/toasts.ts Normal file
View file

@ -0,0 +1,8 @@
import { toasts } from "@metro/common";
export function showToast(content: string, asset: number) {
return toasts.open({
content: content,
source: asset
});
}