Skip to content

A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.

TypeScript fluxerfluxerapp
490 B
Raw Blame
// SPDX-License-Identifier: AGPL-3.0-or-later

import Toast from '@app/features/ui/state/Toast';
import type {ToastProps} from '@app/features/ui/toast';

export function createToast(data: ToastProps): string {
	return Toast.createToast(data);
}

export function destroyToast(id: string): void {
	Toast.destroyToast(id);
}

export function success(message: string): string {
	return Toast.success(message);
}

export function error(message: string): string {
	return Toast.error(message);
}