@commercelayer/react-components
Version:
The Official Commerce Layer React Components
12 lines (11 loc) • 617 B
TypeScript
import { type JSX } from 'react';
import type { BaseInputComponentProps } from '../../typings/index';
import type { OrderCodeType } from '../../reducers/OrderReducer';
type FieldName = 'gift_card_code' | 'coupon_code';
type Props = {
name?: FieldName;
type?: 'text';
placeholderTranslation?: (codeType: OrderCodeType) => string;
} & Omit<BaseInputComponentProps, 'name' | 'type'> & Omit<JSX.IntrinsicElements['input'], 'children'> & Omit<JSX.IntrinsicElements['textarea'], 'children'>;
export declare function GiftCardOrCouponInput(props: Props): JSX.Element | null;
export default GiftCardOrCouponInput;