'use client'; import styles from '@/components/friends/Friends.module.css'; import Image from 'next/image'; import { FC } from 'react'; import Friend from '@/components/friends/Friend'; import CopyLinkToast from '@/components/ui/copy-link-toast/CopyLinkToast'; import { usePlayerStore } from '@/store/player.state'; interface IFriends { isVisible: boolean; referral_fee: number | undefined; friendsAndReferralsCount: { friendsWord: string; referralWord: string }; handleCopyInviteLink: () => Promise; handleCloseToastLink: () => void; } const Friends: FC = ({ isVisible, referral_fee, friendsAndReferralsCount, handleCopyInviteLink, handleCloseToastLink, }) => { const { player } = usePlayerStore(); const referrals = player?.attributes.my_referrals.data; return (
Друзья
{referral_fee || 0} {'robucks
Получай 10% от твоих друзей +5% от друзей реферала +2.5% от их рефералов
{friendsAndReferralsCount.friendsWord} {friendsAndReferralsCount.referralWord}
{referrals?.map(referral => )}
); }; export default Friends;