refactor: NPED Context, sound update and start session

This commit is contained in:
2025-09-25 10:38:49 +01:00
parent efd037754e
commit 80b407943f
20 changed files with 96 additions and 39 deletions

View File

@@ -1,10 +1,9 @@
import { useQuery } from "@tanstack/react-query";
import { useRef } from "react";
const apiUrl = import.meta.env.VITE_BASEURL;
import { CAM_BASE } from "../utils/config";
async function fetchOverviewImage(cameraSide: string) {
const response = await fetch(`${apiUrl}${cameraSide}-preview`);
const response = await fetch(`${CAM_BASE}/${cameraSide}-preview`);
if (!response.ok) throw new Error("could not fetch overview image");
return response.blob();
}