@@ -3,14 +3,14 @@ import clsx from 'clsx';
33
44import type { ReactionDetailsComparator , ReactionSummary , ReactionType } from './types' ;
55
6- import { Modal as DefaultModal } from '../Modal' ;
6+ import type { ModalProps } from '../Modal' ;
7+ import { GlobalModal } from '../Modal' ;
78import { useFetchReactions } from './hooks/useFetchReactions' ;
89import { LoadingIndicator } from '../Loading' ;
910import { Avatar } from '../Avatar' ;
11+ import type { MessageContextValue } from '../../context' ;
1012import { useComponentContext , useMessageContext } from '../../context' ;
1113import type { ReactionSort } from 'stream-chat' ;
12- import type { ModalProps } from '../Modal' ;
13- import type { MessageContextValue } from '../../context' ;
1414
1515export type ReactionsListModalProps = ModalProps &
1616 Partial < Pick < MessageContextValue , 'handleFetchReactions' | 'reactionDetailsSort' > > & {
@@ -33,7 +33,7 @@ export function ReactionsListModal({
3333 sortReactionDetails : propSortReactionDetails ,
3434 ...modalProps
3535} : ReactionsListModalProps ) {
36- const { Modal = DefaultModal } = useComponentContext ( ) ;
36+ const { Modal = GlobalModal } = useComponentContext ( ) ;
3737 const selectedReaction = reactions . find (
3838 ( { reactionType } ) => reactionType === selectedReactionType ,
3939 ) ;
0 commit comments