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

export const useGetAnnoncement = () => {
  return useQuery({
    queryKey: ["announcements"],
    queryFn: () => api.getAnnoncements(),
  });
};
