UNPKG

stream-chat-react

Version:

React components to create chat conversations or livestream style chat

11 lines (10 loc) 514 B
import React from 'react'; import { useChannelStateContext } from '../../context/ChannelStateContext'; import { useTranslationContext } from '../../context/TranslationContext'; export const ThreadStart = () => { const { thread } = useChannelStateContext('ThreadStart'); const { t } = useTranslationContext('ThreadStart'); if (!thread?.reply_count) return null; return (React.createElement("div", { className: 'str-chat__thread-start' }, t('replyCount', { count: thread.reply_count }))); };