import type { AppRouteModule } from '/@/router/types';

import { LAYOUT } from '/@/router/constant';
import { t } from '/@/hooks/web/useI18n';

const advertisement: AppRouteModule = {
  path: '/advertisement',
  name: 'advertisement',
  component: LAYOUT,
  redirect: '/advertising/list',
  meta: {
    // hideChildrenInMenu: true,
    icon: 'ri:advertisement-fill',
    title: t('routes.dashboard.advertisement'),
    orderNo: 101,
  },
  children: [
    {
      path: 'list',
      name: 'advertisementList',
      component: () => import('/@/views/advertisement/list.vue'),
      meta: {
        title: t('routes.dashboard.advertisementList'),
        icon: 'mdi:view-gallery',
      },
    },
    {
      path: 'pads/:type',
      name: 'advertisementPads',
      component: () => import('/@/views/advertisement/pads.vue'),
      meta: {
        title: t('routes.dashboard.advertisementPads'),
        icon: 'ic:baseline-recommend',
      },
    },
  ],
};

export default advertisement;
