cambios
This commit is contained in:
1 parent
794a659369
commit
5f99b65611
349 files changed
+32252
-2180
No files matched your search
@@ -0,0 +1,17 @@
|
||||
import { useQuery } from "@tanstack/react-query";
|
||||
import { apiFetch } from '@/app/(landing)/services/api';
|
||||
|
||||
export interface Company {
|
||||
id: string;
|
||||
name: string;
|
||||
logoUrl?: string;
|
||||
showInLanding?: boolean;
|
||||
}
|
||||
|
||||
export function useCompanies() {
|
||||
return useQuery<Company[]>({
|
||||
queryKey: ["companies"],
|
||||
queryFn: () => apiFetch<Company[]>("/api/companies"),
|
||||
staleTime: 1000 * 60 * 5,
|
||||
});
|
||||
}
|
||||
Reference in new issue
Block a user