camera zoom handling across components; unify zoom level type and improve state management

This commit is contained in:
2025-10-02 16:07:05 +01:00
parent 4eeb368484
commit 82ef562046
7 changed files with 111 additions and 156 deletions

View File

@@ -3,7 +3,6 @@ import { SnapshotContainer } from "../CameraOverview/SnapshotContainer";
import Card from "../UI/Card";
import { useNavigate, useLocation } from "react-router";
import { useSwipeable } from "react-swipeable";
import type { ZoomLevel } from "../../types/types";
const OverviewVideoContainer = ({
side,
@@ -14,8 +13,8 @@ const OverviewVideoContainer = ({
title: string;
side: string;
settingsPage?: boolean;
zoomLevel?: ZoomLevel;
onZoomLevelChange?: (level: ZoomLevel) => void;
zoomLevel?: number;
onZoomLevelChange?: (level: number) => void;
}) => {
const navigate = useNavigate();
const location = useLocation();