import { i18next } from '@operato/i18n';
export function getMenuTemplate(owner = false, dataSets) {
    return [
        {
            name: i18next.t('menu.home'),
            icon: 'home',
            path: 'dashboard'
        },
        owner && {
            name: i18next.t('menu.power-plant-management'),
            type: 'group'
        },
        owner && {
            name: i18next.t('menu.onm-power-plant-management'),
            icon: 'home',
            path: 'onm-list'
        },
        owner && {
            name: 'Sunsage 발전소 관리',
            icon: 'bolt',
            path: 'power-plant-list'
        },
        owner && {
            name: i18next.t('menu.open-weather-city-management'),
            icon: 'home',
            path: 'open-weather-city-list'
        },
        owner && {
            name: 'Sunflow 발전소 관리',
            type: 'group'
        },
        owner && {
            name: 'Sunflow 발전소 관리',
            icon: 'sync',
            path: 'sunflow-power-plant-list'
        },
        owner && {
            name: i18next.t('menu.dataset-management'),
            type: 'group'
        },
        owner && {
            name: i18next.t('menu.dataset-management'),
            icon: 'display_settings',
            path: 'data-set-list'
        },
        owner && {
            name: i18next.t('menu.data-keyset-management'),
            icon: 'display_settings',
            path: 'data-key-set-list'
        },
        owner && {
            name: i18next.t('menu.data-sensor-management'),
            icon: 'sensors',
            path: 'data-sensor-list'
        },
        {
            name: i18next.t('menu.data-sample-query'),
            type: 'group'
        },
        ...(dataSets.map(item => {
            return {
                name: item.name,
                icon: 'checklist',
                path: `data-sample-search/${item.id}`
            };
        }) || []),
        owner && {
            name: i18next.t('menu.data-sample-list'),
            icon: 'sensors',
            path: 'data-sample-list'
        },
        {
            name: i18next.t('menu.outlier-query'),
            type: 'group'
        },
        {
            name: i18next.t('menu.outlier-query'),
            icon: 'playlist_remove',
            path: 'data-ooc-list'
        },
        {
            name: i18next.t('menu.data-summary'),
            type: 'group'
        },
        ...(dataSets
            .filter(item => item.active && item.summaryPeriod)
            .map(item => {
            return {
                name: item.name,
                icon: 'checklist',
                path: `data-summary-period/${item.id}`
            };
        }) || []),
        {
            name: i18next.t('menu.summary-by-inverter'),
            icon: 'checklist',
            path: 'inverter-summary'
        }
    ].filter(Boolean);
}
//# sourceMappingURL=menu.js.map