import {Injectable} from '@angular/core';
import {DropdownMenu, SingleMenu} from './sidebar.model';

@Injectable({
  providedIn: 'root'
})
export class SidebarService {
  singleMenus: SingleMenu[] = [
    {
      title: 'Dashboard',
      icon: 'fa fa-tachometer-alt',
      active: false,
      link: '/dashboard',
      type: 'single'
    },
    {
      title: 'MenuItem1',
      icon: 'fas fa-user-friends',
      active: false,
      link: '/link',
      type: 'single'
    },
    {
      title: 'MenuItem2',
      icon: 'fas fa-list-ul',
      active: false,
      link: '/link2',
      type: 'single'
    },
  ];
  dropDownMenus: DropdownMenu[] = [
    // change the routerLink accordingly
    {
      title: 'Category',
      icon: 'fa fa-user',
      active: false,
      type: 'dropdown',
      subMenus: [
        {
          title: 'SubCategory2',
          link: '/link1',
        }
      ]
    },
  ];
  constructor() {
  }

  getSingleMenus() {
    return this.singleMenus;
  }
  getDropDownMenu() {
    return this.dropDownMenus;
  }
}
