import styles from './Favicon.module.css'; function getHostName(url: string) { const match = url.match(/^(?:https?:\/\/)?(?:[^@\n]+@)?(?:www\.)?([^:/\n?=]+)/im); return match && match.length > 1 ? match[1] : null; } export function Favicon({ domain, ...props }) { if (process.env.privateMode) { return null; } const hostName = domain ? getHostName(domain) : null; return hostName ? ( ) : null; } export default Favicon;