feat:add toast bridge
This commit is contained in:
11
js-framework/src/util/modal.ts
Normal file
11
js-framework/src/util/modal.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { BridgeContext } from "../runtime/global";
|
||||
|
||||
|
||||
|
||||
export function modal(context: BridgeContext) {
|
||||
return {
|
||||
toast: (msg: string) => {
|
||||
context.modal.toast({ msg })
|
||||
},
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user