import {sprintf, __, _n} from '@wordpress/i18n'; import Button from '../../design/components/Button'; import './scss/components/BulkActionBar.scss'; import PremiumBadge from '../../design/partials/premium-badge'; const BulkActionBar = ( {selectedCount, onBulkAction, actions} ) => { if ( selectedCount === 0 ) { return null; } // Convert the { 'trash': { label: ... } } object to an array const actionList = Object.keys( actions ).map( key => ({ key: key, ...actions[key] }) ); return (