import { useCameraSettingsContext } from "../../../../../app/context/CameraSettingsContext"; import type { SightingType } from "../../../../../utils/types"; import NumberPlate from "../../platePatch/NumberPlate"; import VideoFeed from "../../videoFeed/VideoFeed"; type SightingModalContentProps = { sighting: SightingType | null; }; const SightingModalContent = ({ sighting }: SightingModalContentProps) => { const { state: cameraSettings } = useCameraSettingsContext(); const size = cameraSettings.imageSize; const modalImageSize = { width: size.width / 1.5, height: size.height / 1.5 }; return (
VRM
{sighting.vrm}
Timestamp
{new Date(sighting.timeStampMillis).toLocaleString()}
Motion
{sighting.motion}
No sighting data available.
)}