import { SV_TRANSFER as URL_PREFIX, SV_TRANSFER_LISTING, SV_TRANSFER_DETAILS } from '@/config/url-prefix'

export default [
  {
    path: URL_PREFIX,
    name: 'SvTransfer',
    component: () => import('@/elements/templates/screens/SidebarFluid'),
    redirect: { name: 'SvTransferListingPaginated', params: { page: 1 } },
    meta: {
      dashboardMenu: {
        displayName: 'SvTransfer.Title',
        priority: 2,
        icon: 'sidebar-sv-transfer',
      },
      policy: {
        'sv-transfer': 'view',
      },
    },
    children: [
      {
        path: SV_TRANSFER_LISTING + '/:page',
        name: 'SvTransferListingPaginated',
        component: () => import('@/app/sv-transfer/transfer-listing/components/SvTransferListing'),
        props: true,
        meta: {
          title: 'SvTransfer.Listing.Title',
        },
      },
      {
        path: SV_TRANSFER_DETAILS + '/:recordId',
        name: 'SvTransferDetails',
        component: () => import('@/app/sv-transfer/transfer-details/components/svTransferDetails'),
        props: true,
        meta: {
          title: 'SvTransfer.Details.Title',
        },
      },
    ],
  },
]
