UNPKG

office-ui-fabric-react

Version:

Reusable React components for building experiences for Office 365.

21 lines (19 loc) 585 B
"use strict"; /* Retreive the route URL for a page in a group from the the AppState */ function getPageRouteFromState(appstate, groupName, pageName) { var route = ''; appstate.examplePages.map(function (pageValue) { if (groupName === pageValue.name) { pageValue.links.map(function (linkValue) { if (linkValue.name === pageName) { route = linkValue.url; } }); } }); return route; } exports.getPageRouteFromState = getPageRouteFromState; //# sourceMappingURL=pageroute.js.map