UNPKG

stream-chat-react

Version:

React components to create chat conversations or livestream style chat

9 lines (8 loc) 528 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 ${searchSource.type}...`))); };