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

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

const bulletin: AppRouteModule = {
  path: '/bulletin',
  name: 'Bulletin',
  component: LAYOUT,
  redirect: '/bulletin/rent',
  meta: {
    // hideChildrenInMenu: true,
    icon: 'mdi:bulletin-board',
    title: t('routes.dashboard.bulletin'),
    orderNo: 100,
  },
  children: [
    {
      path: 'rent',
      name: 'bulletinRentInfo',
      component: () => import('/@/views/bulletin/rent.vue'),
      meta: {
        title: t('routes.dashboard.bulletinRentInfo'),
        icon: 'map:movie-rental',
      },
    },
    {
      path: 'sell',
      name: 'bulletinSellInfo',
      component: () => import('/@/views/bulletin/sell.vue'),
      meta: {
        title: t('routes.dashboard.bulletinSellInfo'),
        icon: 'ic:baseline-sell',
      },
    },
    {
      path: 'decoration',
      name: 'bulletinDecoration',
      component: () => import('/@/views/bulletin/decoration.vue'),
      meta: {
        title: t('routes.dashboard.bulletinDecoration'),
        icon: 'carbon:construction',
      },
    },
  ],
};

export default bulletin;
