pricing4react
Version:
A library of components that ease the integration of feature toggling driven by pricing plans into your React application's UI.
22 lines (21 loc) • 913 B
TypeScript
import { Dispatch, SetStateAction } from "react";
import { Attributes, Plans, RawPricingContext, UserContextAttributes } from "../types";
interface EditorContextProps {
attributes: Attributes;
setAttributes: Dispatch<SetStateAction<Attributes>>;
userContextAttributes: UserContextAttributes;
setUserContextAttributes: Dispatch<SetStateAction<UserContextAttributes>>;
plans: Plans;
setPlans: Dispatch<SetStateAction<Plans>>;
theme: string;
returnTo: string;
}
export declare const EditorContext: import("react").Context<EditorContextProps>;
interface EditorContextProviderProps {
pricingContext: RawPricingContext;
theme?: string;
returnTo?: string;
children: JSX.Element | JSX.Element[];
}
export declare function EditorContextProvider({ pricingContext, theme, returnTo, children, }: EditorContextProviderProps): import("react/jsx-runtime").JSX.Element;
export {};