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

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

const routes: RouteRecordRaw[] = [
    {
        meta: {
            keepAlive: true,
            icon: 'solar:user-broken',
            order: 2,
            title: $t('player_data.title'),
        },
        name: $t('player_data.player_list'),
        path: '/player-data',
        children: [
            {
                meta: {
                    title: $t('player_data.player_list'),
                    icon:'solar:users-group-rounded-outline',
                    keepAlive: true

                },
                name: 'AntDesignPlayerList',
                path: '/player-data/player-list',
                component: () => import('#/views/player_data/player_list/index.vue'),
            },
            {
                meta: {
                    title: $t('player_data.game_records'),
                    icon:'solar:gamepad-minimalistic-outline',
                    keepAlive: true

                },
                name: 'GameRecordList',
                path: '/player-data/game-records',
                component: () => import('#/views/player_data/game_records/index.vue'),
            },
            {
                meta: {
                    title: $t('player_data.funds_change'),
                    icon:'solar:reorder-broken',
                    keepAlive: true

                },
                name: 'FundsChangeList',
                path: '/player-data/funds-change',
                component: () => import('#/views/player_data/funds_change/index.vue'),
            },
            {
                meta: {
                    title: $t('player_data.transform_records'),
                    icon:'solar:card-recive-line-duotone',
                    keepAlive: true

                },
                name: 'TransformRecordsList',
                path: '/player-data/transform-records',
                component: () => import('#/views/player_data/transform_records/index.vue'),
            },
        ],
    },
];

export default routes;
