import { useQuery } from '@tanstack/react-query';
import { getIamCapabilities } from '@/shared/api/iamCapabilities';

export const IAM_CAPABILITIES_QUERY_KEY = ['iam-capabilities'] as const;

export function useIamCapabilities() {
  return useQuery({
    queryKey: IAM_CAPABILITIES_QUERY_KEY,
    queryFn: getIamCapabilities,
  });
}
