Ask Stellar AI
++ Get answers about building on Stellar, grounded in the official + documentation. +
+{welcomeMessage}
+ )} + {suggestions && suggestions.length > 0 && ( +
+ {error.message || String(error)}
+
+ )}
+
+ {children}
+
+ ; the code component renders the block itself.
+ pre: ({ children }) => <>{children}>,
+ code: ({ className, children }) => {
+ const match = /language-(\w+)/.exec(className ?? "");
+ const raw = String(children ?? "").replace(/\n$/, "");
+ const isBlock = match != null || raw.includes("\n");
+ if (isBlock) {
+ return (
+
+ {raw}
+
+ );
+ }
+ return {children};
+ },
+ }}
+ >
+ {children}
+ + Get answers about building on Stellar, grounded in the official + documentation. +
+