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

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

    return {
        canCreate: can(PERMISSIONS.achievementCreate),
        canUpdate: can(PERMISSIONS.achievementUpdate),
        canView: can(PERMISSIONS.achievementView),
    };
}
