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