import React from "react"; import Dashboard from "./Routes/Dashboard/Dashboard"; import Error from "./Routes/Error/Error"; import Products from "./Routes/Products/Products"; import Logs from "./Routes/Logs/Logs"; import Container from "./Components/Container/Container"; import { createBrowserRouter, RouterProvider } from "react-router-dom"; import Store from "./Plugins/Redux/Store/Store"; import { Provider } from "react-redux"; import AddProduct from "./Routes/Products/AddProduct/AddProduct"; import EditProduct from "./Routes/Products/EditProduct/EditProduct"; const router = createBrowserRouter([ { path: "/", element: ( ), errorElement: ( ), }, { path: "/Products", element: ( ), }, { path: "/Logs", element: ( ), }, { path: "/Products/AddProduct", element: ( ), }, { path: "/Products/EditProduct/:id", // Updated route with dynamic id parameter element: ( ), }, ]); export default function App() { return ( ); }