mirror of
https://github.com/storytold/placeholder-artcraft.git
synced 2026-10-27 08:46:48 +00:00
0daf83dba9
Need to remove secrets before entire repo can be made public.
19 lines
701 B
TypeScript
19 lines
701 B
TypeScript
interface SubscriptionState {
|
|
currentPlanId: string;
|
|
hasActiveSubscription: boolean;
|
|
customerId?: string;
|
|
subscriptionId?: string;
|
|
billingCycle?: "monthly" | "yearly";
|
|
}
|
|
interface PricingModalState {
|
|
isOpen: boolean;
|
|
subscription: SubscriptionState;
|
|
openModal: () => void;
|
|
closeModal: () => void;
|
|
toggleModal: () => void;
|
|
setSubscription: (subscription: Partial<SubscriptionState>) => void;
|
|
updateCurrentPlan: (planId: string, hasActiveSubscription: boolean) => void;
|
|
}
|
|
export declare const usePricingModalStore: import('zustand').UseBoundStore<import('zustand').StoreApi<PricingModalState>>;
|
|
export {};
|
|
//# sourceMappingURL=pricing-modal-store.d.ts.map
|