@microbitsclub/paywall-solid
Version:
Solid components for Microbits paywalls
14 lines (13 loc) • 523 B
TypeScript
import { JSX } from 'solid-js';
export declare type PaywallPopoverMode = 'no-session' | 'not-authorized';
export interface PaywallPopoverContentProps {
mode?: PaywallPopoverMode;
visible?: boolean;
paywallId?: string;
paywallPrice?: number;
contentUrl?: string;
onLogin?: (contentUrl: string, shouldPurchase: boolean) => void;
onPurchase?: (contentUrl: string) => void;
onCancel?: () => void;
}
export declare const PaywallPopoverContent: (props: PaywallPopoverContentProps) => JSX.Element;