Added Notifications

This commit is contained in:
2026-06-14 16:04:01 +10:00
parent e24d3ceaec
commit a753bffaf8
49 changed files with 1118 additions and 381 deletions
+15
View File
@@ -0,0 +1,15 @@
export const copyToClipboard = (text: string): Promise<void> => {
if (navigator.clipboard) {
return navigator.clipboard.writeText(text);
}
return new Promise((resolve) => {
const el = document.createElement('textarea');
el.value = text;
document.body.appendChild(el);
el.select();
document.execCommand('copy');
document.body.removeChild(el);
resolve();
});
};