scripts/apps/desks/directives/DesksReactDropdown.tsx
import ng from 'core/services/ng';
/**
* @ngdoc directive
* @module superdesk.apps.desks
* @name DesksReactDropdown
*
* @requires React
* @requires item
* @requires className
* @requires desks
* @requires noDesksLabel
*
* @description Creates dropdown react element with list of available desks
*/
import React from 'react';
import {MarkDesksDropdown} from 'apps/desks/components';
export const DesksReactDropdown: any = (item, className, noDesksLabel) => (
<MarkDesksDropdown
desks={ng.get('desks').desks._items}
item={item}
className={className}
noDesksLabel={noDesksLabel}
/>
);
DesksReactDropdown.$inject = ['item', 'className', 'desks', 'noDesksLabel'];