import { apiFetch } from "@/lib/auth/api-client"; import { SearchResult } from "./types"; export function search(q: string): Promise { return apiFetch(`/search?q=${encodeURIComponent(q)}`); }