feat: add memory settings page

This commit is contained in:
Henry Li
2026-02-03 18:18:56 +08:00
parent 4d650f35f8
commit 6b53456b39
13 changed files with 411 additions and 17 deletions
+11
View File
@@ -0,0 +1,11 @@
import { useQuery } from "@tanstack/react-query";
import { loadMemory } from "./api";
export function useMemory() {
const { data, isLoading, error } = useQuery({
queryKey: ["memory"],
queryFn: () => loadMemory(),
});
return { memory: data ?? null, isLoading, error };
}