/** * External dependencies */ import clsx from 'clsx'; import { Component } from '@wordpress/element'; import PropTypes from 'prop-types'; import { Text } from '@woocommerce/experimental'; import { EllipsisMenu } from '@woocommerce/components'; /** * Internal dependencies */ import './style.scss'; class ActivityHeader extends Component { render() { const { className, menu, subtitle, title, unreadMessages } = this.props; const cardClassName = clsx( { 'woocommerce-layout__inbox-panel-header': subtitle, 'woocommerce-layout__activity-panel-header': ! subtitle, }, className ); const countUnread = unreadMessages ? unreadMessages : 0; return (