import Image from "next/image"; import { Streamdown, type StreamdownProps } 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 callout: ({ children, ...props }) => (
{children}
), p: ({ children, ...props }) => (

{children}

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