import { CanDeactivateFn } from '@angular/router';

interface PendingCheckoutComponent {
  canDeactivate(): Promise<boolean>;
}

export const checkoutPendingPurchaseGuard: CanDeactivateFn<PendingCheckoutComponent> = (component) =>
  component.canDeactivate();
