mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-16 14:33:03 +00:00
20 lines
601 B
TypeScript
20 lines
601 B
TypeScript
import { Component, Inject, Input } from '@angular/core';
|
|
import { LinkMenuItemModel } from './models/link.model';
|
|
import { MenuItemType } from '../initial-menus-state';
|
|
import { rendersMenuItemForType } from '../menu-item.decorator';
|
|
|
|
/**
|
|
* Component that renders a menu section of type LINK
|
|
*/
|
|
@Component({
|
|
selector: 'ds-link-menu-item',
|
|
templateUrl: './link-menu-item.component.html'
|
|
})
|
|
@rendersMenuItemForType(MenuItemType.LINK)
|
|
export class LinkMenuItemComponent {
|
|
item: LinkMenuItemModel;
|
|
constructor(@Inject('itemModelProvider') item: LinkMenuItemModel) {
|
|
this.item = item;
|
|
}
|
|
}
|