import { ScoresaberLeaderboardInfo } from "@/schemas/scoresaber/leaderboard"; import { ScoresaberScore } from "@/schemas/scoresaber/score"; import { formatNumber } from "@/utils/number"; import { GlobeAsiaAustraliaIcon } from "@heroicons/react/20/solid"; import clsx from "clsx"; import moment from "moment"; import Image from "next/image"; import ScoreStatLabel from "./ScoreStatLabel"; type ScoreProps = { score: ScoresaberScore; leaderboard: ScoresaberLeaderboardInfo; }; export default function Score({ score, leaderboard }: ScoreProps) { const isFullCombo = score.missedNotes + score.badCuts === 0; return (
#{score.rank}
{moment(score.timeSet).fromNow()}
{leaderboard.songName}
{leaderboard.songAuthorName}{" "} {leaderboard.levelAuthorName}
#{score.rank}
{moment(score.timeSet).fromNow()}