1export async function copyToClipboard(link: string) { 2 await navigator.clipboard.writeText(link); 3 alert("Link copied to clipboard!"); 4}