/* Copyright (C) 2025 QuantumNous This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program. If not, see . For commercial licensing, please contact support@quantumnous.com */ import React from 'react'; import { Avatar, Typography, Card, Button, Input, Badge, Space, } from '@douyinfe/semi-ui'; import { Copy, Users, BarChart2, TrendingUp, Gift, Zap } from 'lucide-react'; const { Text } = Typography; const InvitationCard = ({ t, userState, renderQuota, setOpenTransfer, affLink, handleAffLinkClick, }) => { return ( {/* 卡片头部 */}
{t('邀请奖励')}
{t('邀请好友获得额外奖励')}
{/* 收益展示区域 */} {/* 统计数据统一卡片 */} {/* 标题和按钮 */}
{t('收益统计')}
{/* 统计数据 */}
{/* 待使用收益 */}
{renderQuota(userState?.user?.aff_quota || 0)}
{t('待使用收益')}
{/* 总收益 */}
{renderQuota(userState?.user?.aff_history_quota || 0)}
{t('总收益')}
{/* 邀请人数 */}
{userState?.user?.aff_count || 0}
{t('邀请人数')}
} > {/* 邀请链接部分 */} } className='!rounded-lg' > {t('复制')} } />
{/* 奖励说明 */} {t('奖励说明')}} >
{t('邀请好友注册,好友充值后您可获得相应奖励')}
{t('通过划转功能将奖励额度转入到您的账户余额中')}
{t('邀请的好友越多,获得的奖励越多')}
); }; export default InvitationCard;