import { CommonModule } from '@angular/common';
import { Component, inject } from '@angular/core';
import { RouterModule } from '@angular/router';

import { Store } from '@ngxs/store';
import { Observable } from 'rxjs';

import { CompareState } from '../../../../state/compare.state';

@Component({
  selector: 'app-header-compare',
  imports: [CommonModule, RouterModule],
  templateUrl: './compare.html',
  styleUrl: './compare.scss',
})
export class Compare {
  compareTotal$: Observable<number> = inject(Store).select(CompareState.compareTotal);
}
