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