import Link from "next/link"; import Parser from "html-react-parser"; import PaginationButtons from "./PaginationButtons"; import { MemoizedReactMarkdown } from './MemoizedReactMarkdown'; export default function WebSearchResults({ aiResponse, results }) { return (
▍ } children[0] = (children[0]).replace("`▍`", "▍") } const match = /language-(\w+)/.exec(className || ''); return !inline ? ( ) : ( {children} ); }, table({ children }) { return ( {children}
); }, th({ children }) { return ( {children} ); }, td({ children }) { return ( {children} ); }, }} > {`${aiResponse}`}

About {results.searchInformation?.formattedTotalResults} results ( {results.searchInformation?.formattedSearchTime} seconds)

{results.items?.map((result) => (
{result.formattedUrl} {result.title}

{Parser(result.htmlSnippet)}

))}
); }