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

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

const routes: RouteRecordRaw[] = [
    {
        meta: {
            icon: 'solar:user-broken',
            keepAlive: true,
            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',
                },
                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',
                },
                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',
                },
                name: 'FundsChangeList',
                path: '/player-data/funds-change',
                component: () => import('#/views/player_data/funds_change/index.vue'),
            },
        ],
    },
];

export default routes;
