import { useRef } from "react"; import { Node } from "@/types/proto/api/v2/markdown_service"; import Renderer from "./Renderer"; interface Props { nodes: Node[]; className?: string; onMemoContentClick?: (e: React.MouseEvent) => void; } const MemoContent: React.FC = (props: Props) => { const { className, onMemoContentClick } = props; const memoContentContainerRef = useRef(null); const handleMemoContentClick = async (e: React.MouseEvent) => { if (onMemoContentClick) { onMemoContentClick(e); } }; return (
{props.nodes.map((node, index) => ( ))}
); }; export default MemoContent;