feat: add modal component for sighting details with content display

- Implemented ModalComponent for reusable modal functionality.
- Created SightingItemModal to manage modal state and display sighting details.
- Developed SightingModalContent to render sighting information including video feed and metadata.
This commit is contained in:
2025-12-23 10:37:02 +00:00
parent a299960dfb
commit 3b7487da09
15 changed files with 574 additions and 717 deletions

View File

@@ -2,6 +2,7 @@ import type { CameraSettings, CameraSettingsAction } from "../../utils/types";
export const initialState: CameraSettings = {
mode: 0,
imageSize: { width: 1280, height: 960 },
};
export const cameraSettingsReducer = (state: CameraSettings, action: CameraSettingsAction) => {
@@ -11,6 +12,11 @@ export const cameraSettingsReducer = (state: CameraSettings, action: CameraSetti
...state,
mode: action.payload,
};
case "SET_IMAGE_SIZE":
return {
...state,
imageSize: action.payload,
};
default:
return state;
}