repo_description: Hey is a decentralized and permissionless social media app built with Lens Protocol 🌿
repo_topics: blockchain crypto dapp graphql hacktoberfest lens-protocol nextjs react social-media tailwindcss turborepo typescript vitest wagmi web3
code: const FAVICON_BASE_URL = "https://external-content.duckduckgo.com/ip3";
  const UNKNOWN_DOMAIN = "unknowndomain";
  
  const getFavicon = (url: string): string => {
    const domain = (() => {
      try {
        return new URL(url).hostname;
      } catch {
        return UNKNOWN_DOMAIN;
      }
    })();
  
    return `${FAVICON_BASE_URL}/${domain || UNKNOWN_DOMAIN}.ico`;
  };
  
  export default getFavicon;
  