import { Component, ChangeDetectionStrategy, Output, EventEmitter, Input } from '@angular/core';
import { RemissionSelectors } from 'apps/sales/src/app/core/store/selectors/remission.selectors';
import { Select } from '@ngxs/store';
import { Observable } from 'rxjs';

@Component({
  selector: 'app-remission-shipping-document-actions',
  templateUrl: 'shipping-document-actions.component.html',
  styleUrls: ['./shipping-document-actions.component.scss'],
  changeDetection: ChangeDetectionStrategy.OnPush,
})
export class ShippingDocumentActionsComponent {
  @Select(RemissionSelectors.getRemissionShippingDocumentProductCount)
  shippingDocumentProductCount$: Observable<number>;

  @Output() navigateToProducts = new EventEmitter<void>();
  @Output() completeShippingDocument = new EventEmitter<void>();

  constructor() {}
}
