diff --git a/src/components/player/player-scores.tsx b/src/components/player/player-scores.tsx index 2760bbe..d2f4d59 100644 --- a/src/components/player/player-scores.tsx +++ b/src/components/player/player-scores.tsx @@ -6,6 +6,7 @@ import ScoreSaberPlayer from "@/common/data-fetcher/types/scoresaber/scoresaber- import ScoreSaberPlayerScoresPage from "@/common/data-fetcher/types/scoresaber/scoresaber-player-scores-page"; import { capitalizeFirstLetter } from "@/common/string-utils"; import useWindowDimensions from "@/hooks/use-window-dimensions"; +import { ClockIcon, TrophyIcon } from "@heroicons/react/24/solid"; import { useQuery } from "@tanstack/react-query"; import { motion, useAnimation } from "framer-motion"; import { useCallback, useEffect, useState } from "react"; @@ -14,6 +15,19 @@ import Pagination from "../input/pagination"; import { Button } from "../ui/button"; import Score from "./score/score"; +const scoreSort = [ + { + name: "Top", + value: ScoreSort.top, + icon: , + }, + { + name: "Recent", + value: ScoreSort.recent, + icon: , + }, +]; + type Props = { initialScoreData?: ScoreSaberPlayerScoresPage; player: ScoreSaberPlayer; @@ -77,13 +91,16 @@ export default function PlayerScores({ initialScoreData, player, sort, page }: P return (
- {Object.values(ScoreSort).map((sortOption) => ( + {Object.values(scoreSort).map((sortOption, index) => ( ))}