import { useQuery } from "@tanstack/react-query";
import { getOrders } from "../service/Service";

export const useGetOrders = () => {
  return useQuery({
    queryKey: ["orders"],
    queryFn: getOrders,
  });
};
