import React from 'react'; import styles from './ratingcard.module.css'; import { EIcons, Icon } from '../../Icons'; import { PointsBlock } from '../PointsBlock'; import { ETextStyles } from '../../texts'; import { PersonIcon } from '../PersonIcon'; interface IRatingCard { number: number, name: string, score: string, index: number, friend ?: boolean, img: string } export function RatingCard({number, name, score, index, friend=false, img}: IRatingCard) { let order = number; if(friend) { order = index; } return (
{name}