We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65bb739 commit 2bebf8eCopy full SHA for 2bebf8e
packages/react-sdk/src/components/ai-state-indicator.tsx
@@ -17,7 +17,7 @@ const MESSAGES = [
17
'Cooking up something good',
18
];
19
20
-export const AIStateIndicator = () => {
+export const AIStateIndicator = ({ text }: { text?: string }) => {
21
const messageIndex = useMemo(
22
() => Math.floor(Math.random() * MESSAGES.length),
23
[],
@@ -32,7 +32,7 @@ export const AIStateIndicator = () => {
32
<span className="aicr__state-indicator__dot" />
33
</div>
34
<span className="aicr__state-indicator__text">
35
- {MESSAGES[messageIndex]}
+ {typeof text === 'string' ? text : MESSAGES[messageIndex]}
36
</span>
37
38
0 commit comments