FastAPI + Celery + Next.js + Postgres/Redis app with company monitoring, source collection, LLM-based change analysis, enrichment, and account security (Turnstile, escalating lockout, email verification).
12 lines
273 B
TypeScript
12 lines
273 B
TypeScript
"use client";
|
|
|
|
import { useQuery } from "@tanstack/react-query";
|
|
import { api } from "@/lib/api-client";
|
|
|
|
export function useSnapshots(companyId: string) {
|
|
return useQuery({
|
|
queryKey: ["snapshots", companyId],
|
|
queryFn: () => api.listSnapshots(companyId),
|
|
});
|
|
}
|