import { useAuth } from "@/app/auth/AuthProvider.jsx";
import { PERMISSIONS } from "@/app/permissions";

export function useCPWeeklyRankAbilities() {
    const { can } = useAuth();

    return {
        canUpdate: can(PERMISSIONS.cpWeeklyRankUpdate),
        canView: can(PERMISSIONS.cpWeeklyRankView),
    };
}
