Refactor
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import { getBuildBattleRank, getNextBuildBattleRank } from "@/lib/hypixel/build-battle/general"
|
||||
import { getBuildBattleRank, getBuildBattleRankNext } from "@/lib/hypixel/build-battle/general"
|
||||
import { getProgress } from "@/lib/hypixel/general"
|
||||
import { cn } from "@/lib/utils"
|
||||
import { GenericProgress } from "../../_components/GenericProgress"
|
||||
|
||||
export default function BuildBattleTitleProgress({ score }: { score: number }) {
|
||||
const current = getBuildBattleRank(score)
|
||||
const next = getNextBuildBattleRank(score)
|
||||
const next = getBuildBattleRankNext(score)
|
||||
|
||||
const percent = getProgress(0, score, next !== null ? next.value : 0)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user