/**
 * Offers feature module (@maestro/core).
 */
import OffersIndex from "./views/OffersIndex.vue";
import OfferEditor from "./views/OfferEditor.vue";

export const offerRoutes = [
  {
    path: "offers",
    name: "offers",
    meta: {
      module: "offers",
      permission: "offers.view",
      breadcrumb: ["Offers"],
      title: "Offers",
    },
    component: OffersIndex,
  },
  {
    path: "offers/:id",
    name: "offers-edit",
    meta: {
      module: "offers",
      permission: "offers.edit",
      breadcrumb: ["Offers"],
      title: "Offer editor",
    },
    component: OfferEditor,
  },
];

export { default as OffersIndex } from "./views/OffersIndex.vue";
export { default as OfferEditor } from "./views/OfferEditor.vue";
