mirror of
https://github.com/Jellify-Music/App.git
synced 2026-02-09 03:58:33 -06:00
14 lines
421 B
TypeScript
14 lines
421 B
TypeScript
import { useQuery } from "@tanstack/react-query"
|
|
import { QueryKeys } from "../../enums/query-keys"
|
|
import _ from "lodash";
|
|
import { fetchCredentials, fetchServer } from "./functions/storage";
|
|
|
|
export const useCredentials = () => useQuery({
|
|
queryKey: [QueryKeys.Credentials],
|
|
queryFn: fetchCredentials
|
|
});
|
|
|
|
export const useServer = () => useQuery({
|
|
queryKey: [QueryKeys.ServerUrl],
|
|
queryFn: fetchServer
|
|
}) |