@salla.sa/twilight-components
Version:
Salla Web Component
21 lines (20 loc) • 522 B
TypeScript
import { Prize } from './interfaces';
import { TrackedPromiseState } from '../../Helpers/tracked-promise';
export declare class SallaLoyaltyBanner {
host: HTMLElement;
/**
* ref to exchange modal
*/
private exchangeModal;
/**
* Get product ID from data attribute or fallback to page.id
*/
private get productId();
/**
* loyalty prize for the product
*/
prize: TrackedPromiseState<Prize>;
componentWillLoad(): any;
handleClick(): void;
render(): any;
}