import { StrictMode } from 'react'
import { createRoot } from 'react-dom/client'

import {
  createBrowserRouter,
  RouterProvider,
} from "react-router-dom";

import List from "./list/List";
import Chart from "./chart/Chart";
import Main from "./main/Main";
import ProjectDetails from "./projectDetails/ProjectDetails";



const router = createBrowserRouter([
  {
    path: "",
    element: <Main />,
  },
  {
    path: "/project-details/:id",
    element: <ProjectDetails />,
  },
  {
    path: "/list",
    element: <List />,
  },
  {
    path: "/chart",
    element: <Chart />,
  },
]);



import './styles/index.css'
createRoot(document.getElementById('root')!).render(
  <StrictMode>
    <RouterProvider router={router} />
  </StrictMode>,
)
