import type { RouteRecordRaw } from 'vue-router';

import { BasicLayout } from '#/layouts';
import { $t } from '#/locales';

const routes: RouteRecordRaw[] = [
  {
    component: BasicLayout,
    meta: {
      icon: 'lucide:bell-ring',
      order: 1002,
      title: $t('page.notification.title'),
      authority: ['super', 'AC9101', 'AC9102'],
    },
    name: 'Notification',
    path: '/notification',
    children: [
      {
        name: 'NotificationConfig',
        path: '/index',
        component: () => import('#/views/notification/index.vue'),
        meta: {
          affixTab: true,
          icon: 'lucide:bell-plus',
          title: $t('page.notification.config'),
          authority: ['super', 'AC9101', 'AC9102'],
        },
      },
    ],
  },
];

export default routes;