vn-verdnaturachat/app/lib/methods/helpers/showToast.ts

5 lines
199 B
TypeScript
Raw Normal View History

import { LISTENER } from '../../../containers/Toast';
import EventEmitter from '../../../utils/events';
export const showToast = (message: string): void => EventEmitter.emit(LISTENER, { message });