import { ErrorPage } from '@backstage/core-components';
import React from 'react';
import { Routes, Route } from 'react-router-dom';
import { optimizationsBreakdownRouteRef } from '../routes.esm.js';
import { ResourceOptimizationIndexPage } from './resource-optimization-index/ResourceOptimizationIndexPage.esm.js';
import { RosDetailComponent } from '../components/RosDetailComponent/RosDetailComponent.esm.js';

function Router() {
  return /* @__PURE__ */ React.createElement(Routes, null, /* @__PURE__ */ React.createElement(Route, { path: "/", element: /* @__PURE__ */ React.createElement(ResourceOptimizationIndexPage, null) }), /* @__PURE__ */ React.createElement(
    Route,
    {
      path: optimizationsBreakdownRouteRef.path,
      element: /* @__PURE__ */ React.createElement(RosDetailComponent, null)
    }
  ), /* @__PURE__ */ React.createElement(
    Route,
    {
      path: "*",
      element: /* @__PURE__ */ React.createElement(ErrorPage, { status: "404", statusMessage: "Page not found" })
    }
  ));
}

export { Router };
//# sourceMappingURL=Router.esm.js.map
