import { Component } from "react"
import Admin from "./pages/admin.js"
import Cart from "./pages/cart.js"
import LogIn from "./pages/logIn.js"
import Shop from "./pages/shop.js"
import Device from "./pages/devicePage.js"
import { ADMIN_ROUTE, CART_ROUTE, DEVICE_PAGE_ROUTE, LOG_IN_ROUTE, REGISTRATION_ROUTE, SHOP_ROUTE } from "./utulits/consts"

export const authRoutes = [
    {
        path: ADMIN_ROUTE,
        Component: Admin
    },

    {
        path: CART_ROUTE,
        Component: Cart
    }
]

export const publicRoutes = [
    {
        path: LOG_IN_ROUTE,
        Component: LogIn
    },

    {
        path: REGISTRATION_ROUTE,
        Component: LogIn
    },
    
    {
        path: SHOP_ROUTE,
        Component: Shop
    },

    {
        path: DEVICE_PAGE_ROUTE + '/:id',
        Component: Device
    }
]