import { Component, Inject } from '@angular/core'; import { MenuItemType } from '../initial-menus-state'; import { rendersMenuItemForType } from '../menu-item.decorator'; import { OnClickMenuItemModel } from './models/onclick.model'; /** * Component that renders a menu section of type ONCLICK */ @Component({ selector: 'ds-onclick-menu-item', templateUrl: './onclick-menu-item.component.html' }) @rendersMenuItemForType(MenuItemType.ONCLICK) export class OnClickMenuItemComponent { item: OnClickMenuItemModel; constructor(@Inject('itemModelProvider') item: OnClickMenuItemModel) { this.item = item; } }