/** * External dependencies */ import { __ } from '@wordpress/i18n'; import { Button } from '@wordpress/components'; import clsx from 'clsx'; export const Tab = ( { icon, title, name, unread, selected, isPanelOpen, onTabClick, } ) => { const className = clsx( 'woocommerce-layout__activity-panel-tab', { 'is-active': isPanelOpen && selected, 'has-unread': unread, } ); const tabKey = `activity-panel-tab-${ name }`; return ( ); };