mirror of
https://github.com/Jellify-Music/App.git
synced 2026-02-11 13:08:31 -06:00
8 lines
313 B
TypeScript
8 lines
313 B
TypeScript
import { QueryKeys } from "../../enums/query-keys";
|
|
import { useQuery } from "@tanstack/react-query";
|
|
import { fetchSearchSuggestions } from "./functions/suggestions";
|
|
|
|
export const useSearchSuggestions = () => useQuery({
|
|
queryKey: [QueryKeys.SearchSuggestions],
|
|
queryFn: () => fetchSearchSuggestions()
|
|
}) |