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

export const useMailboxCount = () => {
  return useQuery({
    queryKey: ["mailbox-count"],
    queryFn: getMailboxCount,
    staleTime: 0,
  });
};
