UNPKG

@uimkit/uikit-react

Version:

<img style="width:64px" src="https://mgmt.uimkit.chat/media/img/avatar.png"/>

14 lines (11 loc) 1.04 kB
import React__default from 'react'; import { useTranslationContext } from '../../context/TranslationContext.js'; import './MessageNotification.js'; var MessageListNotifications = function (props) { var hasNewMessages = props.hasNewMessages, isMessageListScrolledToBottom = props.isMessageListScrolledToBottom, isNotAtLatestMessageSet = props.isNotAtLatestMessageSet, MessageNotification = props.MessageNotification, scrollToBottom = props.scrollToBottom, threadList = props.threadList; var t = useTranslationContext('MessageListNotifications').t; return (React__default.createElement("div", { className: 'uim__list-notifications' }, React__default.createElement(MessageNotification, { isMessageListScrolledToBottom: isMessageListScrolledToBottom, onClick: scrollToBottom, showNotification: hasNewMessages || isNotAtLatestMessageSet, threadList: threadList }, isNotAtLatestMessageSet ? t('最新消息') : t('新消息!')))); }; export { MessageListNotifications }; //# sourceMappingURL=MessageListNotifications.js.map