const { Module } = Shopware;

/**
 * @package services-settings
 * @private
 */
Shopware.Component.register('sw-settings-usage-data', () => import('./page/sw-settings-usage-data'));
/**
 * @package services-settings
 * @private
 */
Shopware.Component.register('sw-settings-usage-data-general', () => import('./component/sw-settings-usage-data-general'));

/**
 * @package services-settings
 * @private
 */
Module.register('sw-settings-usage-data', {
    type: 'core',
    name: 'usage-data',
    title: 'sw-settings-usage-data.general.mainMenuItemGeneral',
    description: 'sw-settings-usage-data.general.description',
    version: '1.0.0',
    targetVersion: '1.0.0',
    color: '#9AA8B5',
    icon: 'regular-cog',
    favicon: 'icon-module-settings.png',
    entity: 'store_settings',

    routes: {
        index: {
            component: 'sw-settings-usage-data',
            path: 'index',
            meta: {
                parentPath: 'sw.settings.index.system',
                privilege: 'system.system_config',
            },
            redirect: {
                name: 'sw.settings.usage.data.index.general',
            },
            children: {
                general: {
                    component: 'sw-settings-usage-data-general',
                    path: 'general',
                    meta: {
                        parentPath: 'sw.settings.index.system',
                        privilege: 'system.system_config',
                    },
                },
            },
        },
    },

    settingsItem: {
        group: 'system',
        to: 'sw.settings.usage.data.index',
        icon: 'regular-analytics',
        privilege: 'system.system_config',
    },
});

/**
 * @package services-settings
 * @private
 */
export {};
