import { definePlugin } from "@halo-dev/console-shared";
import SystemSettings from "./SystemSettings.vue";
import { IconSettings } from "@halo-dev/components";
import { markRaw } from "vue";
import BasicLayout from "@console/layouts/BasicLayout.vue";

export default definePlugin({
  components: {},
  routes: [
    {
      path: "/settings",
      component: BasicLayout,
      children: [
        {
          path: "",
          name: "SystemSetting",
          component: SystemSettings,
          meta: {
            title: "core.setting.title",
            permissions: ["system:settings:view"],
            menu: {
              name: "core.sidebar.menu.items.settings",
              group: "system",
              icon: markRaw(IconSettings),
              priority: 2,
            },
          },
        },
      ],
    },
  ],
});
