/** * MyRewardsModal - 我的奖励弹窗组件 * * 展示用户已获得的奖励列表 * * @module MyRewardsModal * @date 2026-01-04 */ import React from 'react'; export type RewardStatus = 'Available' | 'Expired' | 'Used'; export interface Reward { /** * 奖励 ID */ id: string; /** * 奖励名称 */ name: string; /** * 优惠码(可选) */ code?: string; /** * 状态 */ status: RewardStatus; /** * 奖励时间 */ prizeTime?: string; /** * 是否可复制码 */ showCopyCode?: boolean; /** * 是否可用 */ available?: boolean; } export interface MyRewardsModalProps { /** * 是否显示弹窗 */ isOpen: boolean; /** * 关闭弹窗回调 */ onClose: () => void; /** * 弹窗标题 * @default "My Rewards" */ title?: string; /** * 奖励列表 */ rewards: Reward[]; /** * 复制码点击回调 */ onCopyCode?: (code: string) => void; /** * 自定义类名 */ className?: string; /** * 代码文本前缀 * @default "CODE:" */ codeText?: string; /** * 复制按钮文本 * @default "COPY" */ copyText?: string; /** * 复制成功后的按钮文本 * @default "COPIED" */ copiedText?: string; /** * 奖励时间文本前缀 * @default "Prize time:" */ prizeText?: string; /** * 空状态文案 * @default "No rewards yet" */ emptyText?: string; /** * 主题模式 * @default 'light' */ theme?: 'light' | 'dark'; } /** * MyRewardsModal 我的奖励弹窗组件 */ export declare const MyRewardsModal: React.FC; export default MyRewardsModal;