/*! Copyright [Amazon.com](http://amazon.com/), Inc. or its affiliates. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0 */
import * as React from "react";
import { Route, Routes as ReactRoutes } from "react-router-dom";
import Home from "../../pages/Home";
{{#hasApis}}
import ApiExplorer from "../../pages/ApiExplorer";
{{/hasApis}}

/**
 * Defines the Routes.
 */
const Routes: React.FC = () => {
  return (
    <ReactRoutes>
      <Route key={0} path="/" element={<Home />} />
      {{#hasApis}}
      <Route key={0} path="/apiExplorer" element={<ApiExplorer />} />
      {{/hasApis}}
    </ReactRoutes>
  );
};

export default Routes;
