[Toasts] Implement
This commit is contained in:
parent
111720806c
commit
9f1fe6313d
3 changed files with 24 additions and 1 deletions
8
src/ui/toasts.ts
Normal file
8
src/ui/toasts.ts
Normal file
|
@ -0,0 +1,8 @@
|
|||
import { toasts } from "@metro/common";
|
||||
|
||||
export function showToast(content: string, asset: number) {
|
||||
return toasts.open({
|
||||
content: content,
|
||||
source: asset
|
||||
});
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue