mirror of
https://github.com/iconoir-icons/iconoir
synced 2024-06-26 17:30:16 +02:00
10 lines
275 B
TypeScript
10 lines
275 B
TypeScript
export function showNotification(message: string) {
|
|
const element = document.createElement('div');
|
|
element.classList.add('bottom-notification');
|
|
element.innerText = message;
|
|
document.body.appendChild(element);
|
|
setTimeout(() => {
|
|
element.remove();
|
|
}, 3000);
|
|
}
|