import { type RouteConfig, index,route,layout } from "@react-router/dev/routes";

export default [
    index("routes/home.jsx"),
    route("api/checkout", "routes/api.checkout.jsx"),
    //auth routes
    layout("routes/layouts/siteLayout.jsx",[
        route("register","routes/register.jsx"),
        route("checkout", "routes/checkout.jsx"),
        route("checkout/paypal/return", "routes/checkout.paypal.return.jsx"),
        route("category/:urlKey", "routes/CategoriesPage.jsx"),
        route("product/:urlKey", "routes/ProductPage.jsx"),
        route("cart", "routes/cartPage.jsx"),
        route("login", "routes/loginPage.jsx"),
        route("account", "routes/AccountPage.jsx"),
        route("privacy", "routes/privacyPolicy.jsx"),
        route("delivery", "routes/shippingInformation.jsx"),
        route("returns", "routes/returnsPage.jsx"),
        route("terms", "routes/termsPage.jsx"),
        route("checkout/success", "routes/OrderCompleted.jsx"),
        route("search", "routes/SearchPage.jsx"),
        
    ])
    

] satisfies RouteConfig;
