mirror of
https://github.com/kennethnym/aris.git
synced 2026-06-17 13:01:18 +01:00
chore: rename aelis to freya (#122)
This commit is contained in:
13
apps/freya-client/src/feed/queries.ts
Normal file
13
apps/freya-client/src/feed/queries.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { queryOptions } from "@tanstack/react-query"
|
||||
|
||||
import { useApiClient } from "@/api/client"
|
||||
|
||||
import { FeedItem } from "./types"
|
||||
|
||||
export function useFeedQuery() {
|
||||
const api = useApiClient()
|
||||
return queryOptions({
|
||||
queryKey: ["feed"],
|
||||
queryFn: async () => api.request<{ items: FeedItem[] }>("/feed?render=json-render"),
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user