import { definePlugin } from "@halo-dev/console-shared";
import BasicLayout from "@console/layouts/BasicLayout.vue";
import AuthProviders from "./AuthProviders.vue";
import AuthProviderDetail from "./AuthProviderDetail.vue";

export default definePlugin({
  routes: [
    {
      path: "/users",
      component: BasicLayout,
      children: [
        {
          path: "auth-providers",
          name: "AuthProviders",
          component: AuthProviders,
          meta: {
            title: "core.identity_authentication.title",
            searchable: true,
          },
        },
        {
          path: "auth-providers/:name",
          name: "AuthProviderDetail",
          component: AuthProviderDetail,
          meta: {
            title: "core.identity_authentication.detail.title",
          },
        },
      ],
    },
  ],
});
