/**
 * Customers feature module (@maestro/core).
 */
import CustomersIndex from "./views/Index.vue";
import CustomersShow from "./views/Show.vue";

export const customerRoutes = [
  {
    path: "customers",
    name: "customers",
    meta: {
      module: "customers",
      breadcrumb: ["Customers"],
      title: "Customers",
    },
    component: CustomersIndex,
  },
  {
    path: "customers/:id",
    name: "customers-show",
    meta: {
      module: "customers",
      breadcrumb: ["Customers"],
      title: "Customer",
    },
    component: CustomersShow,
  },
];

export { default as CustomersIndex } from "./views/Index.vue";
export { default as CustomersShow } from "./views/Show.vue";

export {
  useCustomerList,
  useCustomer,
  useCustomerForm,
  useCustomerContacts,
  useCustomerAddresses,
} from "./composables/useCustomers.js";
