UNPKG

@commercelayer/react-components

Version:
17 lines (16 loc) 683 B
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;