import React from "react" import { Streamdown } from "streamdown" const components = { p: ({ children, ...props }: React.ComponentPropsWithoutRef<"p">) => { const hasDiv = React.Children.toArray(children).some( (child) => React.isValidElement(child) && typeof child.type === "string" && child.type === "div", ) if (hasDiv) { return
{children}
}, } as const export function WebPageContent({ content }: { content: string }) { return (