import { useCameraFeedContext } from "../../../../app/context/CameraFeedContext"; import type { DecodeReading } from "../../../../types/types"; import { useSightingEntryAndExit } from "../../hooks/useSightingEntryAndExit"; const SightingExitTable = () => { const { state } = useCameraFeedContext(); const cameraFeedID = state.cameraFeedID; const { exitQuery } = useSightingEntryAndExit(cameraFeedID); const isLoading = exitQuery?.isFetching; const readings = exitQuery?.data?.decodes; if (isLoading) return Loading Sighting data…; return (
{readings?.map((reading: DecodeReading) => ( ))}
VRM Lane ID Seen Count First Seen Last Seen
{reading?.vrm} {reading?.laneID} {reading?.seenCount} {reading?.firstSeenTimeHumane} {reading?.lastSeenTimeHumane}
); }; export default SightingExitTable;