import type { DISJSX } from "./disjsxTypes"; import { type ReactNode, type ReactElement } from "react"; /** * Transforms a single React DISJSX component node into its corresponding JSON payload object. * This function is the core of the DISJSX to JSON transformation, mapping each * DISJSX component (e.g., ,