import { Globe2 } from "lucide-react"; import { useMemo } from "react"; import { ActivityStep, type ActivityStepTone } from "@/components/thread/activity/ActivityStep"; import { useLogoFallback } from "@/hooks/useLogoFallback"; import { browserSafeFaviconUrls } from "@/lib/provider-brand"; interface WebActivityRowProps { title: string; href: string; host: string; displayUrl: string; active?: boolean; tone?: ActivityStepTone; } export function WebActivityRow({ title, href, host, displayUrl, active = false, tone = active ? "active" : "neutral", }: WebActivityRowProps) { return ( } active={active} tone={tone} label={( {title} {displayUrl} )} contentClassName="overflow-hidden" /> ); } function WebFavicon({ host, active }: { host: string; active: boolean }) { const candidates = useMemo(() => browserSafeFaviconUrls(host), [host]); const { logoUrl, onLogoError, onLogoLoad } = useLogoFallback(candidates); if (!logoUrl) { return ; } return ( ); }