/* AffiliateNudge — thi thoảng mời học viên GIỚI THIỆU học viên khác (nhận hoa hồng). Không phiền. */ function AffiliateNudge() { const [a, setA] = React.useState(null); const [copied, setCopied] = React.useState(false); React.useEffect(() => { if (window.AG && AG.hasToken && AG.hasToken() && AG.myAffiliate) { AG.myAffiliate().then(setA).catch(() => {}); } }, []); const copy = (t) => { navigator.clipboard && navigator.clipboard.writeText(t || ""); setCopied(true); setTimeout(() => setCopied(false), 1500); }; const zalo = (a && a.zalo) || "0915849968"; if (a && a.eligible === false) return null; return (
Thấy khoá hữu ích? Giới thiệu bạn bè cùng học — bạn nhận hoa hồng giới thiệu.
{a && a.code ?Nhắn Zalo {zalo} để nhận mã CTV riêng của bạn.
}