12 lines
419 B
JavaScript
12 lines
419 B
JavaScript
import {showInfoToast, showWarningToast, showErrorToast} from '../modules/toast.js';
|
|
|
|
document.getElementById('info-toast').addEventListener('click', () => {
|
|
showInfoToast('success π');
|
|
});
|
|
document.getElementById('warning-toast').addEventListener('click', () => {
|
|
showWarningToast('warning π');
|
|
});
|
|
document.getElementById('error-toast').addEventListener('click', () => {
|
|
showErrorToast('error π');
|
|
});
|