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

export const useWorkspaces = () => {
  return useQuery({
    queryKey: ["workspaces"],
    queryFn: api.getWorkspaces,
  });
};
