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

export const useMailServerData = () => {
  return useQuery({
    queryKey: ["mail-server-data"],
    queryFn: getServerInfo,
  });
};
