const CreateOrderView = () => import("@/views/orders/creation/index.vue");
const ListOrderView = () => import("@/views/orders/list/index.vue");
const OrderTrackView = () => import("@/views/orders/track/index.vue");

export const OrderRoutes = [
  {
    name: "createOrder",
    path: "/tao-don-hang",
    component: CreateOrderView,
    meta: {
      title: "Tạo đơn hàng",
    },
  },
  {
    name: "listOrder",
    path: "/danh-sach-don-hang",
    component: ListOrderView,
    meta: {
      title: "Danh sách đơn hàng",
    },
  },
  {
    name: "orderTrack",
    path: "/tra-cuu/:code?",
    component: OrderTrackView,
    props: true,
    meta: {
      title: "Tra cứu đơn hàng",
    },
  },
];
