import Markdown from "react-markdown"; export default function NodeDocumentation(props: any) { if (!props.doc) return null; return (
{props.children}
{props.doc.map?.( (section: any, i: number) => section.kind === "text" && {section.value}, ) ?? {props.doc}}
); }