import type { SearchResult } from "@/lib/mock-data"; interface ResultCardProps { result: SearchResult; } export function ResultCard({ result }: ResultCardProps) { const domain = result.parsed_url[1]; const faviconUrl = `https://www.google.com/s2/favicons?domain=${domain}&sz=32`; return (
{result.pretty_url} {result.engines.length > 1 && ( {result.engines.length} engines )}

{result.title}

{result.content}

{result.publishedDate && ( {new Date(result.publishedDate).toLocaleDateString("en-US", { year: "numeric", month: "short", day: "numeric" })} )}
); }