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

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

  return {
    canCreate: can(PERMISSIONS.userCreate),
    canEdit: can(PERMISSIONS.userUpdate),
    canExport: can(PERMISSIONS.userExport),
    canResetPassword: can(PERMISSIONS.userResetPassword),
    canStatus: can(PERMISSIONS.userStatus),
    canViewTeams: can(PERMISSIONS.teamView),
    canViewRoles: can(PERMISSIONS.roleView)
  };
}
