import { Component } from '@angular/core';
import { StorageService } from 'src/app/services/storage.service';

@Component({
  selector: 'app-tabs',
  templateUrl: 'tabs.page.html',
  styleUrls: ['tabs.page.scss'],
  standalone: false,
})
export class TabsPage {
  historyNav = '';
  historyTab = '';

  constructor(private storageService: StorageService) {
    this.storageService.getCurrentUserId().then((userId) => {
        if (userId !== undefined && userId !== null) {
          this.historyNav = `/tabs/history/${userId}`;
          this.historyTab = `history/${userId}`;
        }
      });
  }

}
