@commercelayer/react-components
Version:
The Official Commerce Layer React Components
17 lines (16 loc) • 683 B
TypeScript
import { type JSX } from "react";
import type { ChildrenFunction } from "../../typings/index";
import type { CodeType } from "../../reducers/OrderReducer";
interface ChildrenProps extends Omit<Props, "children" | "type"> {
code?: string | null;
hide?: boolean;
discountAmountCents?: number | null;
discountAmountFloat?: number | null;
formattedDiscountAmount?: string | null;
}
interface Props extends Omit<JSX.IntrinsicElements["span"], "children"> {
type?: CodeType;
children?: ChildrenFunction<ChildrenProps>;
}
export declare function GiftCardOrCouponCode({ children, type, ...props }: Props): JSX.Element | null;
export default GiftCardOrCouponCode;