import type { DecodeReading } from "../../../../../types/types"; type PlatePatchModalContentProps = { currentPatch: DecodeReading | null; direction?: "entry" | "exit"; }; const PlatePatchModalContent = ({ currentPatch, direction }: PlatePatchModalContentProps) => { const imageSrc = `data:image/png;base64,${currentPatch?.plate || ""}`; const imageUrl = currentPatch ? imageSrc : ""; return (

{currentPatch?.vrm}

{direction === "entry" ? "Entry" : "Exit"}
{`${direction

Bay ID

{currentPatch?.laneID || "N/A"}

Seen Count

{currentPatch?.seenCount || "N/A"}

First Seen

{currentPatch?.firstSeenTimeHumane || "N/A"}

Last Seen

{currentPatch?.lastSeenTimeHumane || "N/A"}

); }; export default PlatePatchModalContent;