+ {isLandingPage ? (
+
+
🤖
+
+ Hi, there! I'm SpotterCode
+
+
+ Ask me anything about the ThoughtSpot developer docs.
+
+ {suggestedQuestions.length > 0 && (
+
+ {suggestedQuestions.map((q, i) => (
+
+ ))}
+
+ )}
+
+ ) : (
+ <>
+ {messages.map((msg, i) => (
+
+
+ {msg.role === 'user' ? 'You' : 'SpotterCode'}
+
+ {msg.role === 'assistant' ? (
+
+ ) : (
+
+ {msg.content}
+
+ )}
+
+ ))}
+ {isLoading && (
+
+
SpotterCode
+ {streamingText ? (
+
+ ) : (
+
+ {toolStatus ? (
+ <>
+
+ {toolStatus}
+ >
+ ) : (
+ <>>
+ )}
+
+ )}
+
+ )}
+ >
+ )}
+
+