import { I_TOKEN as URL_PREFIX, I_TOKEN_LISTING } from '@/config/url-prefix'

export default [
  {
    path: URL_PREFIX,
    name: 'iToken',
    component: () => import('@/elements/templates/screens/SidebarFluid'),
    redirect: { name: 'iTokenListing', params: { page: 1 } },
    meta: {
      dashboardMenu: {
        displayName: 'Itoken.Redemption.Title',
        priority: 3,
        icon: 'sidebar-i-token',
      },
      policy: {
        itoken: 'view',
      },
    },
    children: [
      {
        path: I_TOKEN_LISTING + '/:page',
        name: 'iTokenListing',
        component: () => import('@/app/i-token/dashboard/components/ITokenRedemptionListing'),
        props: true,
        meta: {
          title: 'Itoken.Redemption.Title',
        },
      },
    ],
  },
]
