<div *ngIf="product$ | async as product">
  <h2>Szczegóły produktu</h2>
  <h3>{{product.name}}</h3>
  <span>{{product.price | currency:'EUR'}}</span>
  <form (ngSubmit)="changePrice(product, price!)">
    <input placeholder="Nowa cena" name="price" [(ngModel)]="price" />
    <button type="submit">Zmień</button>
  </form>
  <p>
     <button *ngIf="authService.isLoggedIn" (click)="buy(product)">Kup teraz</button>
     <button class="delete" (click)="remove(product)">Usuń</button>
  </p>
  </div>
