Initial revision

This commit is contained in:
Adrian Rumpold
2025-05-21 09:20:41 +02:00
commit dfd89fbf26
23 changed files with 4260 additions and 0 deletions

10
src/hooks/useGlossary.ts Normal file
View File

@@ -0,0 +1,10 @@
import { useQuery } from "@tanstack/react-query";
import { fetchGlossary } from "../lib/nist-api";
const useGlossary = () =>
useQuery({
queryKey: ["glossary"],
queryFn: fetchGlossary,
staleTime: 5 * 60 * 1000, // 5 minutes
});
export default useGlossary;