Deprecate icu:unreadMessage

This commit is contained in:
Fedor Indutny 2024-03-07 11:40:16 -08:00 committed by GitHub
parent 3f9c184577
commit c2044a4ce3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 16 deletions

View file

@ -12,11 +12,6 @@ export type Props = {
export const LastSeenIndicator = forwardRef<HTMLDivElement, Props>(
function LastSeenIndicatorInner({ count, i18n }, ref) {
const message =
count === 1
? i18n('icu:unreadMessage')
: i18n('icu:unreadMessages', { count });
return (
<div className="module-last-seen-indicator" ref={ref}>
<div className="module-last-seen-indicator__bar" role="separator" />
@ -25,7 +20,7 @@ export const LastSeenIndicator = forwardRef<HTMLDivElement, Props>(
className="module-last-seen-indicator__text"
role="heading"
>
{message}
{i18n('icu:unreadMessages', { count })}
</div>
</div>
);