verdnatura-chat/app/lib/methods/helpers/showToast.ts

5 lines
186 B
TypeScript

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