import React from 'react'; import HighlightBtn from '../components/HighlightBtn'; /** * @ngdoc directive * @module superdesk.apps.highlights * @name HighlightsReactDropdown * * @requires React * @requires item * @requires className * @requires highlightsService * @requires desks * @requires noHighlightsLabel * * @param {Object} [highlights] collection of highlights * * @description Creates dropdown react element with list of available highlights */ HighlightsReactDropdown.$inject = ['item', 'className', 'highlightsService', 'desks', 'noHighlightsLabel']; export function HighlightsReactDropdown(item, className, highlightsService, desks, noHighlightsLabel) { var highlights = highlightsService.getSync(desks.getCurrentDeskId()) || {_items: []}; const noHighlights = (