"use client"; import React, { FC, useState } from "react"; import { getDifficultyText } from "@/lib/helpers"; import { Skeleton } from "../ui/skeleton"; import ImageCell from "../scoreplaylog/image"; type userRatingBaseList = { title: string; artist: string; genre: string; chartId: string | number; level: string | number; jacketPath: string; rating: number; version: number; index: number; musicId: number | null; difficultId: number | null; score: number | null; }; type ChunithmProfileHotPlays = { chuniProfileNextPlays: { nextPlays: userRatingBaseList[]; }; }; export const ChunithmNextPlays: FC = ({ chuniProfileNextPlays, }) => { return (
{chuniProfileNextPlays.nextPlays.map((playerNextRatingList, index) => { return (
  • Title: {playerNextRatingList.title}
  • Level: {playerNextRatingList.level}
  • Difficulty: {getDifficultyText(Number(playerNextRatingList.chartId))}
  • Score: {playerNextRatingList.score?.toLocaleString()}
  • Rating: {(playerNextRatingList.rating / 100).toFixed(2)}
); })}
); };