mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-30 17:01:25 +00:00
20 lines
366 B
JavaScript
20 lines
366 B
JavaScript
// @flow
|
|
import React from 'react';
|
|
|
|
type Props = {
|
|
unreadCount: number,
|
|
};
|
|
|
|
export default function NotificationHeaderButton(props: Props) {
|
|
const { unreadCount } = props;
|
|
|
|
if (unreadCount === 0) {
|
|
return null;
|
|
}
|
|
|
|
return (
|
|
<span className="notification__bubble">
|
|
<span className="notification__count">{unreadCount}</span>
|
|
</span>
|
|
);
|
|
}
|