/** * ShareModal - 分享弹窗组件 * * 用于引导用户分享到社交媒体以获取额外抽奖机会 * * @module ShareModal * @date 2026-01-07 */ import React from 'react'; export type SocialPlatform = 'facebook' | 'twitter' | 'instagram' | 'linkedin' | 'tiktok' | 'youtube'; export interface SharePlatformConfig { /** * 平台类型 */ platform: SocialPlatform; /** * 平台名称 */ name: string; /** * 分享 URL(可选,如果提供则直接跳转) */ url?: string; /** * 点击回调(如果提供 url 则此回调会在跳转前执行) */ onClick?: () => void; /** * 是否禁用 */ disabled?: boolean; } export interface ShareModalProps { /** * 是否显示弹窗 */ isOpen: boolean; /** * 关闭弹窗回调 */ onClose: () => void; /** * 弹窗标题 * @default "Share to Get More Chances" */ title?: string; /** * 副标题/引导文案 * @default "Share to Play Again Keep Trying! You Could Still Win Big!" */ subtitle?: string; /** * 底部提示文案 * @default "Note: Maximum of 3 times per participant." */ note?: string; /** * 社交平台配置列表 */ platforms?: SharePlatformConfig[]; /** * 分享成功回调 */ onShareSuccess?: (platform: SocialPlatform) => void; /** * 自定义类名 */ className?: string; /** * 主题模式 * @default 'light' */ theme?: 'light' | 'dark'; } /** * ShareModal 分享弹窗组件 */ export declare const ShareModal: React.FC; export default ShareModal;