- Updated mode settings in camera feed reducer to use "painter" - Renamed PlatePatch component to SightingPatch and updated imports - Removed obsolete PlatePatch component - Added SightingEntryTable and SightingExitTable components for displaying sighting data - Implemented useSightingEntryAndExit hook for fetching entry and exit sightings - Adjusted VideoFeedGridPainter for improved width calculation - Introduced DecodeReading type for better typing
21 lines
555 B
TypeScript
21 lines
555 B
TypeScript
import { useState } from "react";
|
|
|
|
import VideoFeedGridPainter from "./Video/VideoFeedGridPainter";
|
|
import CameraSettings from "./CameraSettings/CameraSettings";
|
|
|
|
import PlatePatch from "./PlatePatch/SightingPatch";
|
|
|
|
const CameraGrid = () => {
|
|
const [tabIndex, setTabIndex] = useState(0);
|
|
|
|
return (
|
|
<div className="grid grid-cols-1 md:grid-cols-5 md:grid-rows-5 max-h-screen">
|
|
<VideoFeedGridPainter />
|
|
<CameraSettings tabIndex={tabIndex} setTabIndex={setTabIndex} />
|
|
<PlatePatch />
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default CameraGrid;
|