import Image from "next/image"; import type { Components } from "react-markdown"; import { Streamdown } from "streamdown"; import { cn } from "@/lib/utils"; interface MarkdownViewerProps { content: string; className?: string; } export function MarkdownViewer({ content, className }: MarkdownViewerProps) { const components: Components = { // Define custom components for markdown elements p: ({ children, ...props }) => (

{children}

), a: ({ children, ...props }) => ( {children} ), li: ({ children, ...props }) =>
  • {children}
  • , ul: ({ ...props }) =>