feat(parsers+api+ui+db): 999 ACK transaction set end-to-end (SP3 P3)
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import { useQuery } from "@tanstack/react-query";
|
||||
import { api, type PaginatedResponse } from "@/lib/api";
|
||||
import type { Ack } from "@/types";
|
||||
|
||||
/**
|
||||
* Lists 999 ACKs, newest first. Mirrors `useRemittances` but
|
||||
* intentionally has no in-memory fallback (there is no zustand
|
||||
* sample-data path for ACKs in v1 — the UI is empty until the
|
||||
* backend serves real rows).
|
||||
*/
|
||||
export function useAcks(params: { limit?: number } = {}) {
|
||||
return useQuery<PaginatedResponse<Ack>>({
|
||||
queryKey: ["acks", params],
|
||||
queryFn: () => api.listAcks(params),
|
||||
enabled: api.isConfigured,
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user