import { BlueRain } from '@blueeast/bluerain-os'; const getAppList = (BR: BlueRain) => { const AppsJSON = BR.Apps.toObject(); // empty array initialized const appsList: any[] = []; // pushes required objects in the array with required attributes only Object.keys(AppsJSON).map((each) => { if (!AppsJSON[each].hidden) { const eachObject = AppsJSON[each]; appsList.push({ name: eachObject.appName, link: eachObject.path, slug: eachObject.slug, }); } }); return appsList; }; export default getAppList;