Skip to content

Commit f58a780

Browse files
committed
chore: renaming again
1 parent f2c65f5 commit f58a780

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

examples/vite/src/App.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { ChannelFilters, ChannelOptions, ChannelSort } from 'stream-chat';
22
import {
3-
AIGenerationIndicator,
3+
AIStateIndicator,
44
Channel,
55
ChannelAvatar,
66
ChannelHeader,
@@ -90,7 +90,7 @@ const App = () => {
9090
<Window>
9191
<ChannelHeader Avatar={ChannelAvatar} />
9292
<MessageList returnAllReadData />
93-
<AIGenerationIndicator />
93+
<AIStateIndicator />
9494
<MessageInput focus />
9595
</Window>
9696
<Thread virtualized />

src/components/AITypingIndicatorView/AIGenerationIndicator.tsx renamed to src/components/AITypingIndicatorView/AIStateIndicator.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,20 @@ import { AIStates, useAIState } from './hooks/useAIState';
77
import { useChannelStateContext, useTranslationContext } from '../../context';
88
import type { DefaultStreamChatGenerics } from '../../types/types';
99

10-
export type AIGenerationIndicatorProps<
10+
export type AIStateIndicatorProps<
1111
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics
1212
> = {
1313
channel?: Channel<StreamChatGenerics>;
1414
};
1515

16-
export const AIGenerationIndicator = <
16+
export const AIStateIndicator = <
1717
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics
1818
>({
1919
channel: channelFromProps,
20-
}: AIGenerationIndicatorProps<StreamChatGenerics>) => {
20+
}: AIStateIndicatorProps<StreamChatGenerics>) => {
2121
const { t } = useTranslationContext();
2222
const { channel: channelFromContext } = useChannelStateContext<StreamChatGenerics>(
23-
'AIGenerationIndicator',
23+
'AIStateIndicator',
2424
);
2525
const channel = channelFromProps || channelFromContext;
2626
const { aiState } = useAIState(channel);
@@ -30,8 +30,8 @@ export const AIGenerationIndicator = <
3030
};
3131

3232
return aiState in allowedStates ? (
33-
<div className='str-chat__ai-generation-indicator-container'>
34-
<p className='str-chat__ai-generation-indicator-text'>{allowedStates[aiState]}</p>
33+
<div className='str-chat__ai-state-indicator-container'>
34+
<p className='str-chat__ai-state-indicator-text'>{allowedStates[aiState]}</p>
3535
</div>
3636
) : null;
3737
};
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
export * from './AIGenerationIndicator';
1+
export * from './AIStateIndicator';
22
export * from './hooks/useAIState';

0 commit comments

Comments
 (0)