@coursebuilder/commerce-next
Version:
Commerce Functionality for Course Builder with Next.js
48 lines • 1.84 kB
TypeScript
import * as React from 'react';
import { Purchase } from '@coursebuilder/core/schemas';
import type { ButtonProps } from '@coursebuilder/ui/primitives/button';
import type { InputProps } from '@coursebuilder/ui/primitives/input';
export default function InviteTeam(props: RootProps): import("react/jsx-runtime").JSX.Element;
type InviteTeamContextType = {
purchase: Purchase;
existingPurchase?: Purchase | null;
disabled?: boolean;
userEmail?: string | null;
};
type RootProps = InviteTeamContextType & {
className?: string;
};
type InnerContextType = {
inviteLink: string;
};
export declare const InviteTeamProvider: React.FC<InviteTeamContextType & {
children: React.ReactNode;
inviteLink: string;
}>;
export declare const useInviteTeam: () => InviteTeamContextType & InnerContextType;
declare const Root: React.FC<React.PropsWithChildren<RootProps>>;
type SeatsAvailableProps = {
asChild?: boolean;
className?: string;
};
declare const SeatsAvailable: React.FC<React.PropsWithChildren<SeatsAvailableProps>>;
type InviteLinkProps = {
className?: string;
asChild?: boolean;
[key: string]: InputProps[keyof InputProps];
};
declare const InviteLink: React.FC<React.PropsWithChildren<InviteLinkProps>>;
type CopyInviteLinkButtonProps = {
className?: string;
asChild?: boolean;
[key: string]: ButtonProps[keyof ButtonProps];
};
declare const CopyInviteLinkButton: React.FC<React.PropsWithChildren<CopyInviteLinkButtonProps>>;
type SelfRedeemButtonProps = {
className?: string;
asChild?: boolean;
[key: string]: ButtonProps[keyof ButtonProps];
};
declare const SelfRedeemButton: React.FC<React.PropsWithChildren<SelfRedeemButtonProps>>;
export { Root, SeatsAvailable, InviteLink, CopyInviteLinkButton, SelfRedeemButton, };
//# sourceMappingURL=invite-team.d.ts.map