@coursebuilder/commerce-next
Version:
Commerce Functionality for Course Builder with Next.js
35 lines • 1.19 kB
TypeScript
import * as React from 'react';
import { Product } from '@coursebuilder/core/schemas';
type PurchaseSummaryContextType = {
email: string;
product: Product;
title: string;
description?: React.JSX.Element | null;
};
type RootProps = PurchaseSummaryContextType & {
className?: string;
};
export declare const OrderSummaryProvider: React.FC<PurchaseSummaryContextType & {
children: React.ReactNode;
}>;
export declare const usePurchaseSummary: () => PurchaseSummaryContextType;
declare const Root: React.FC<React.PropsWithChildren<RootProps>>;
type TitleProps = {
asChild?: boolean;
className?: string;
};
declare const Title: React.FC<React.PropsWithChildren<TitleProps>>;
type StatusProps = {
className?: string;
};
declare const Status: React.FC<React.PropsWithChildren<StatusProps>>;
type DescriptionProps = {
className?: string;
};
declare const Description: React.FC<React.PropsWithChildren<DescriptionProps>>;
type ProductImageProps = {
className?: string;
};
declare const ProductImage: React.FC<React.PropsWithChildren<ProductImageProps>>;
export { Root, Title, Description, ProductImage, Status };
//# sourceMappingURL=purchase-summary.d.ts.map