import { Component, Input, OnInit } from '@angular/core';
import { PagesComponent } from '../../../../pages/pages.component';

@Component({
    selector: 'of-menu',
    templateUrl: './app.menu.component.html'
})

export class AppMenuComponent implements OnInit {

    @Input() reset: boolean;

    model: any[];

    constructor(public app: PagesComponent) { }

    ngOnInit() {
        this.model = [
            { label: 'Home', icon: 'home', routerLink: ['/'] },
            {
                label: 'Infra', icon: 'all_inclusive', items: [
                    { label: 'Map', icon: 'map', routerLink: ['/map'] },
                    { label: 'Sensors', icon: 'compare_arrows', routerLink: ['/sensor/list'] },
                    { label: 'Probes', icon: 'dock', routerLink: ['/probe/list'] },
                ]
            },
            {
                label: 'Monitor', icon: 'remove_red_eye', items: [
                    { label: 'Overview', icon: 'rate_review', routerLink: ['/overview'] },
                    { label: 'Dashboards', icon: 'dashboard', routerLink: ['/dashboard'] },
                ]
            },
            { label: 'Alert', icon: 'warning', routerLink: ['/alert'] },
            { label: 'Report', icon: 'print', routerLink: ['/report'] },
            { label: 'Log', icon: 'history', routerLink: ['/log'] },
        ];
    }

}
