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

{children}

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