"use client"; export const setEmojiFavicon = (emoji: string) => { if (typeof document === "undefined") return; const href = `data:image/svg+xml,${emoji}`; const link = document.querySelector("link[rel*='icon']") || document.createElement("link"); link.setAttribute("rel", "icon"); link.setAttribute("href", href); document.head.appendChild(link); };