// @flow import React from 'react'; import classnames from 'classnames'; type Props = { unreadCount: number, inline: boolean, user: ?User, }; export default function NotificationHeaderButton(props: Props) { const { unreadCount, inline = false, user } = props; const notificationsEnabled = user && user.experimental_ui; if (unreadCount === 0 || !notificationsEnabled) { return null; } return ( {unreadCount} ); }