import Layout from "./components/Layout";
import ClientsPage from "./pages/ClientsPage";
import DashboardPage from "./pages/DashboardPage";
import LoginPage from "./pages/LoginPage";
import ManagersPage from "./pages/ManagersPage";
import ProjectsPage from "./pages/ProjectsPage";
import ProtectedPage from "./pages/ProtectedPage";
import SessionsPage from "./pages/SessionsPage";

export default [
  {
    path: "/",
    element: <ProtectedPage />,
    children: [
      {
        element: <Layout />,
        children: [
          {
            index: true,
            element: <DashboardPage />,
          },
          {
            path: "sessions",
            element: <SessionsPage />,
          },
          {
            path: "managers",
            element: <ManagersPage />,
          },
          {
            path: "clients",
            element: <ClientsPage />,
          },
          {
            path: "projects",
            element: <ProjectsPage />,
          },
        ],
      },
    ],
  },
  {
    path: "/login",
    element: <LoginPage />,
  },
];
