export function getMenuTemplate(owner: boolean = false, dataKeySets: any[]) {
  return [
    {
      name: 'HOME',
      icon: 'home',
      path: 'dashboard'
    },
    owner && {
      name: 'DATASET 관리',
      type: 'group'
    },
    owner && {
      name: '데이타셋 관리',
      icon: 'display_settings',
      path: 'data-set-list'
    },
    owner && {
      name: '데이타 키셋 관리',
      icon: 'display_settings',
      path: 'data-key-set-list'
    },
    owner && {
      name: '데이타 수집 센서 관리',
      icon: 'sensors',
      path: 'data-sensor-list'
    },
    {
      name: 'DATA 리포트',
      type: 'group'
    },
    ...(dataKeySets.map(item => {
      return {
        name: item.name,
        icon: 'checklist',
        path: `data-sample-search/${item.id}`
      }
    }) || [])
  ].filter(Boolean)
}
