const app = require('../app')
const _ = require('lodash')
const { dashboardIcon, staffMemberIcon, staffingAgencyIcon, laborIcon, retailerIcon, serviceIcon } = require('../assets')
app.component('appUserAreaNav', {
template: html`
Intelligence
Dashboard
{{::location.name}}
{{::location.key}} Labor
{{::location.key}} Services
{{::location.key}} Staff Members
{{::location.key}} Clients
All
Staff Members
Staffing Agencies
Clients
`,
controllerAs: 'ctrl',
controller: function(api) {
window.api = api.locations().then(locations => {
this.locations = _.sortBy(locations, 'key')
})
}
})