import React from 'react';
import { Routes, Route } from 'react-router-dom';
import Settings from '../pages/Settings';
import Demos from '../pages/Demos';
import QueryPage from '../pages/Query';
import ViewPage from '../pages/ViewPage';
import IframePageWrapper from './IframePageWrapper';
import Database from './Database';
import Table from './Table';
import Action from './Action';
import ComponentDemo from './ComponentDemo';
import PageLayout from './PageLayout';
import CommonPageWrapper from './CommonPageWrapper';
import { jsx as _jsx } from "react/jsx-runtime";
import { jsxs as _jsxs } from "react/jsx-runtime";
export default function AppRoutes() {
  return /*#__PURE__*/_jsxs(Routes, {
    children: [/*#__PURE__*/_jsx(Route, {
      path: "/iframe/:dbName/:tableName/:action",
      element: /*#__PURE__*/_jsx(IframePageWrapper, {})
    }), /*#__PURE__*/_jsxs(Route, {
      path: "/",
      element: /*#__PURE__*/_jsx(PageLayout, {}),
      children: [/*#__PURE__*/_jsx(Route, {
        path: "settings",
        element: /*#__PURE__*/_jsx(Settings, {})
      }), /*#__PURE__*/_jsx(Route, {
        path: "query",
        element: /*#__PURE__*/_jsx(CommonPageWrapper, {
          children: /*#__PURE__*/_jsx(QueryPage, {})
        })
      }), /*#__PURE__*/_jsx(Route, {
        path: "demos",
        element: /*#__PURE__*/_jsx(Demos, {}),
        children: /*#__PURE__*/_jsx(Route, {
          path: ":component",
          element: /*#__PURE__*/_jsx(ComponentDemo, {})
        })
      }), /*#__PURE__*/_jsx(Route, {
        path: "_views/:dbName/:viewName",
        element: /*#__PURE__*/_jsx(CommonPageWrapper, {
          children: /*#__PURE__*/_jsx(ViewPage, {})
        })
      }), /*#__PURE__*/_jsx(Route, {
        path: ":dbName",
        element: /*#__PURE__*/_jsx(Database, {}),
        children: /*#__PURE__*/_jsx(Route, {
          path: ":tableName",
          element: /*#__PURE__*/_jsx(Table, {}),
          children: /*#__PURE__*/_jsx(Route, {
            path: ":action",
            element: /*#__PURE__*/_jsx(Action, {})
          })
        })
      })]
    })]
  });
}
//# sourceMappingURL=AppRoutes.js.map