import type { BaseComponent } from "../base"; import type { Overrides } from "../overrides"; import type { StackProps } from "./stack"; export interface PlayStoreOfferConfig { offer_id: string; } /** * Paddle discount to apply to this package on web. `discount_id` is the * Paddle discount id (`dsc_...`); hosts resolve it through Paddle.js before * rendering and pass it to Paddle checkout when purchasing. */ export interface PaddleDiscountConfig { discount_id: string; } export interface PackageProps extends BaseComponent { type: "package"; visible?: boolean | null; package_id: string; is_selected_by_default: boolean; apple_promo_offer_product_code?: string | null; play_store_offer?: PlayStoreOfferConfig | null; paddle_discount?: PaddleDiscountConfig | null; stack: StackProps; overrides?: Overrides; }