import React from 'react';
import { Route, Switch } from 'react-router-dom';
import { asyncRouter, nomatch } from '@choerodon/boot';
import { StoreProvider } from "./stores";
import "./styles/safari.less";
var AppList = asyncRouter(function () {
  return import("./app-list");
});
var ServiceDetail = asyncRouter(function () {
  return import("./service-detail");
});
export default (function (_ref) {
  var match = _ref.match;
  return /*#__PURE__*/React.createElement(StoreProvider, null, /*#__PURE__*/React.createElement(Switch, null, /*#__PURE__*/React.createElement(Route, {
    exact: true,
    path: match.url,
    component: AppList
  }), /*#__PURE__*/React.createElement(Route, {
    exact: true,
    path: "".concat(match.url, "/detail/:id"),
    component: ServiceDetail
  }), /*#__PURE__*/React.createElement(Route, {
    path: "*",
    component: nomatch
  })));
});