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({ queryKey: ["companies"], queryFn: () => apiFetch("/api/companies"), staleTime: 1000 * 60 * 5, }); }