FastVLMBoxes / src /context /useVLMContext.ts
Quazim0t0's picture
Upload 36 files
1a9c884 verified
raw
history blame contribute delete
320 Bytes
import { useContext } from "react";
import { VLMContext } from "./VLMContext";
import type { VLMContextValue } from "../types/vlm";
export function useVLMContext(): VLMContextValue {
const ctx = useContext(VLMContext);
if (!ctx) throw new Error("useVLMContext must be inside VLMProvider");
return ctx;
}