"use client";
function u({
  mintableAchievementsCount: n,
  mintedAchievementsCount: o,
  totalAchievementsCount: r
}) {
  const a = o || 0, s = r > 0 ? r : 0, t = s > 0 ? Math.round(o / s * 100) : 0, e = s > 0 ? Math.round(
    n / s * 100 - t
  ) : 0;
  return { mintedProgress: t, mintableProgress: e, safeMintedCount: a, safeTotalCount: s };
}
export {
  u as default
};
//# sourceMappingURL=getProgress.mjs.map
