fixed type errors

This commit is contained in:
2025-09-16 14:20:38 +01:00
parent c506c395e6
commit b98e3ed85d
21 changed files with 161 additions and 130 deletions

View File

@@ -1,11 +1,11 @@
import { useEffect } from "react";
import type { SightingWidgetType } from "../types/types";
import type { SightingType } from "../types/types";
import { drawRects } from "../utils/utils";
type Mode = 0 | 1 | 2;
export function useOverviewOverlay(
selected: SightingWidgetType | null | undefined,
selected: SightingType | null | undefined,
overlayMode: Mode,
imgRef: React.RefObject<HTMLImageElement | null>,
canvasRef: React.RefObject<HTMLCanvasElement | null>