2023-06-26 22:45:24 -04:00
|
|
|
import {showInfoToast, showWarningToast, showErrorToast} from '../modules/toast.js';
|
|
|
|
|
2024-06-10 16:49:33 -04:00
|
|
|
document.querySelector('#info-toast').addEventListener('click', () => {
|
2023-06-26 22:45:24 -04:00
|
|
|
showInfoToast('success 😀');
|
|
|
|
});
|
2024-06-10 16:49:33 -04:00
|
|
|
document.querySelector('#warning-toast').addEventListener('click', () => {
|
2023-06-26 22:45:24 -04:00
|
|
|
showWarningToast('warning 😐');
|
|
|
|
});
|
2024-06-10 16:49:33 -04:00
|
|
|
document.querySelector('#error-toast').addEventListener('click', () => {
|
2023-06-26 22:45:24 -04:00
|
|
|
showErrorToast('error 🙁');
|
|
|
|
});
|