Files
standardnotes-app-web/packages/ui-services/src/Toast/ToastService.ts
Karol Sójko 7ead0f655b feat: add sending user requests from UI (#1927)
* feat: add sending user requests from UI

* fix(web): view controller manager user client references
2022-11-03 09:39:38 +01:00

17 lines
392 B
TypeScript

import { addToast, dismissToast, ToastType } from '@standardnotes/toast'
import { ToastServiceInterface } from './ToastServiceInterface'
export class ToastService implements ToastServiceInterface {
hideToast(toastId: string): void {
dismissToast(toastId)
}
showToast(type: ToastType, message: string): string {
return addToast({
type: type,
message,
})
}
}