import React from 'react';
import { Route, Switch } from 'react-router-dom';
import { asyncRouter, nomatch } from '@choerodon/boot';
var PipelineHome = asyncRouter(function () {
  return import("./pipeline-table");
}, function () {
  return import("./pipeline-table/stores");
});
var PipelineCreate = asyncRouter(function () {
  return import("./pipeline-create");
}, function () {
  return import("./stores");
});
var PipelineEdit = asyncRouter(function () {
  return import("./pipeline-edit");
}, function () {
  return import("./stores");
});

var PipelineIndex = function PipelineIndex(_ref) {
  var match = _ref.match;
  return /*#__PURE__*/React.createElement(Switch, null, /*#__PURE__*/React.createElement(Route, {
    exact: true,
    path: match.url,
    component: PipelineHome
  }), /*#__PURE__*/React.createElement(Route, {
    path: "".concat(match.url, "/create"),
    component: PipelineCreate
  }), /*#__PURE__*/React.createElement(Route, {
    path: "".concat(match.url, "/edit/:id"),
    component: PipelineEdit
  }), /*#__PURE__*/React.createElement(Route, {
    path: "*",
    component: nomatch
  }));
};

export default PipelineIndex;