import type { ReactNode } from "react"
import { CheckIcon, CopyIcon } from "../../components/icons/AppIcons"
import { renderMarkdownContent as renderChatMarkdownContent } from "./MarkdownContent"

export function renderChatMessageContent(
  content: string,
  options: {
    messageId: string;
    copiedToken: string;
    onCopy: (token: string, text: string) => void | Promise<void>;
  }
): ReactNode[] {
  return renderChatMarkdownContent(content, {
    ...options,
    copyIcon: <CopyIcon />,
    copiedIcon: <CheckIcon />
  });
}
