- const libraryEntries: TopMenuDropdownParam = {
- label: $localize`My library`,
- children: [
- {
- label: $localize`My channels`,
- routerLink: '/my-account/video-channels',
- iconName: 'channel'
- },
- {
- label: $localize`My videos`,
- routerLink: '/my-account/videos',
- iconName: 'videos',
- isDisplayed: () => this.user.canSeeVideosLink
- },
- {
- label: $localize`My playlists`,
- routerLink: '/my-account/video-playlists',
- iconName: 'playlists'
- },
- {
- label: $localize`My subscriptions`,
- routerLink: '/my-account/subscriptions',
- iconName: 'subscriptions'
- },
- {
- label: $localize`My history`,
- routerLink: '/my-account/history/videos',
- iconName: 'history'
- }
- ]
- }
-
- if (this.isVideoImportEnabled()) {
- libraryEntries.children.push({
- label: 'My imports',
- routerLink: '/my-account/video-imports',
- iconName: 'cloud-download',
- isDisplayed: () => this.user.canSeeVideosLink
- })
- }
-
- const miscEntries: TopMenuDropdownParam = {
- label: $localize`Misc`,