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

export const useGetTickets = () => {
  return useQuery({
    queryKey: ["tickets"],
    queryFn: api.getTickets,
  });
};
