File size: 404 Bytes
ed9f15f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
/**
* Toast Notifications - User feedback messages
*/
/**
* Show toast notification
*/
export function showToast(message, type = 'info') {
const toast = document.getElementById('toast');
if (!toast) return;
toast.textContent = message;
toast.className = `toast ${type} show`;
setTimeout(() => {
toast.classList.remove('show');
}, 3000);
}
|