import * as api from "../service/UsersService";
import { useQuery } from "@tanstack/react-query";

export const useGetUsers = () => {
  return useQuery({
    queryKey: ["users"],
    queryFn: api.getUsers,
  });
};
