mirror of
https://github.com/iconoir-icons/iconoir
synced 2024-06-08 08:52:19 +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);
|
||
|
}
|