import React from 'react'; import styles from './friendspageblock.module.css'; import { ETextStyles } from '../../texts'; import { RatingCard } from '../../Elements/RatingCard'; interface IRating { name: string, score: string } export function FriendsPageBlock() { //const rating: Array = []; const rating = [ { name: 'Anficee', score: '1000000' }, { name: 'Maria', score: '300000' }, { name: 'Greg', score: '90000' }, { name: 'Kate', score: '80000' }, { name: 'Eva', score: '70000' }, { name: 'Bill', score: '40000' }, { name: 'Bradley', score: '30000' }, ]; const ratingBlock = rating.map((user, index) => { return ; }) return (
{(rating.length > 0) &&

Рейтинг друзей

}
{ratingBlock}

Мало друзей?

Используй все свои социальные сети! Больше друзей — больше доход в хранилище.

); }