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

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

  return {
    canCreate: can(PERMISSIONS.teamCreate),
    canUpdate: can(PERMISSIONS.teamUpdate),
    canView: can(PERMISSIONS.teamView)
  };
}
