feat: hey-api and projects fetch

This commit is contained in:
2025-08-03 11:07:56 +04:00
parent 459487a896
commit 3e1d544b33
26 changed files with 1825 additions and 684 deletions

View File

@ -0,0 +1,12 @@
import { useQuery } from "@tanstack/react-query";
import { getProjectsOptions } from "@/client/@tanstack/react-query.gen";
const useProjectsList = () => {
const { data, refetch, isLoading } = useQuery({
...getProjectsOptions(),
});
const projects = !data ? [] : data.projects;
return { projects, refetch, isLoading };
};
export default useProjectsList;