UNPKG

periodicjs.ext.reactapp

Version:
38 lines (35 loc) 718 B
'use strict'; function getSidebarNav(options) { var title = options.title, links = options.links; return { component: 'ResponsiveCard', props: { cardTitle: title, display: false, icon: 'fa fa-angle-right', cardStyle: { boxShadow: 'none' }, headerStyle: { boxShadow: 'none', alignSelf: 'center', alignItems: 'center', minHeight: 'auto' } }, children: links.map(function (link) { return { component: 'MenuAppLink', props: { href: link.href, label: link.label, id: link.id } }; }) }; } module.exports = { getSidebarNav: getSidebarNav };