- added modal for developer options

This commit is contained in:
2025-12-12 13:51:11 +00:00
parent 430d134037
commit 5dc1d13e25
10 changed files with 3861 additions and 448 deletions

View File

@@ -0,0 +1,17 @@
import { useQuery } from "@tanstack/react-query";
import { CAM_BASE } from "../utils/config";
const fetchVersions = async () => {
const response = await fetch(`${CAM_BASE}/api/versions`);
if (!response.ok) throw new Error("Cannot get Versions");
return response.json();
};
export const useGetVersions = () => {
const versionsQuery = useQuery({
queryKey: ["getversions"],
queryFn: fetchVersions,
});
return { versionsQuery };
};