apiconnect-explorer
Version:
- [Getting Started](#getting-started) - [Configuration](#configuration) * [Required](#required) * [Optional](#optional) - [Usage in React](#usage-in-react) - [Usage outside of React](#usage-outside-of-react) - [Detailed description of options](#detail
1 lines • 486 B
JavaScript
import a from"react";import b from"./ApiExplorer.js";import{MemoryRouter as c,HashRouter as d}from"react-router-dom";function e(e){var f=e.options,g=e.apis,h=e.encodedApis,i=e.apps,j=e.docs,k=null===f||void 0===f?void 0:f.routerType,l=c;if("hash"===k)l=d;else if(k&&"memory"!==k)throw new Error("Unsupported router type: '".concat(k,"'. Available options: memory, hash"));return a.createElement(l,null,a.createElement(b,{options:f,apis:g,encodedApis:h,apps:i,docs:j}))}export default e;