import { Component, OnInit, ViewChild, ChangeDetectorRef, ViewEncapsulation } from '@angular/core';
import { Router } from '@angular/router';
import { HeaderProperties } from '../../interfaces/header-properties-interface';
import { HeaderProfileProperties } from '../../interfaces/header-profile-properties.interface';


@Component({
    selector: 'stswebcommon-header-login',
    templateUrl: './header-login.component.html',
    styleUrls: ['./header-login.component.scss']
})

export class HeaderLoginComponent implements OnInit {
    public headerItems: HeaderProperties[];
    public headerProfile: HeaderProfileProperties;

    constructor(
        private router: Router,
        private ref: ChangeDetectorRef) {
    }

    public ngOnInit(): void {

        this.headerItems = [
            {'label': 'My Cars', 'linkValue': '/mycars'},
            {'label': 'Notifications', 'linkValue': '/notifications'},
            {'label': 'Messages', 'linkValue': '/messages'}
        ];

        this.headerProfile = {
            imageUrl: '',
            name: 'Joanne Lim HL',
            dropdown: [
                { 'label': 'Profile', 'linkValue': '/Profile' },
                { 'label': 'Settings', 'linkValue': '/Settings' }]
        };



    }

}
