@chatui/core
Version:
The React library for Chatbot UI
18 lines (17 loc) • 489 B
TypeScript
import React from 'react';
type CouponStatus = 'normal' | 'nearExpired' | 'expired' | 'used';
export interface CouponProps {
className?: string;
name: string;
value?: number;
condition?: string;
endAt?: number;
desc?: string;
showCountdown?: 'auto' | boolean;
status?: CouponStatus;
inList?: boolean;
btnText?: string;
onClick?: (e: React.MouseEvent) => void;
}
export declare const Coupon: (props: CouponProps) => React.JSX.Element;
export {};