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

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

const routes: RouteRecordRaw[] = [
  {
    component: LayoutA,
    meta: {
      icon: 'lucide:layout-dashboard',
      order: -1,
      title: $t('page.dashboard.title')
    },
    name: 'Dashboard',
    path: '/',
    children: [
      {
        name: 'Home',
        path: '/home',
        component: () => import('#/views/dashboard/home/index.vue'),
        meta: {
          icon: 'carbon:workspace',
          title: $t('page.dashboard.home')
        },
      },
    ],
  }
];

export default routes;
