// ** Navigation sections imports
import apps from './apps'
import dashboards from './dashboards'

const userdata = JSON.parse(localStorage.getItem("userData"))
const userrole = userdata === null ?  '' : userdata.role
// ** Merge & Export
const navarr = (userrole === "admin") ? [...dashboards, ...apps] : ((userrole === "client") ? [...dashboards] : [])
export default navarr
