UNPKG

stream-chat-react

Version:

React components to create chat conversations or livestream style chat

11 lines (10 loc) 584 B
import React from 'react'; import { useTranslationContext } from '../../../context'; import { useSearchSourceResultsContext } from '../SearchSourceResultsContext'; export const SearchSourceResultsLoadingIndicator = () => { const { t } = useTranslationContext(); const { searchSource } = useSearchSourceResultsContext(); return (React.createElement("div", { className: 'str-chat__search-source-results__loading-indicator', "data-testid": 'search-loading-indicator' }, t('Searching for {{ searchSourceType }}...', { searchSourceType: searchSource.type, }))); };