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-3 gap-4 p-4 h-screen max-h-screen overflow-hidden">
      <div className="col-span-2 flex flex-col gap-4">
        <div className="shrink-0">
          <VideoFeedGridPainter />
        </div>
        <div className="flex-1 overflow-hidden">
          <PlatePatch />
        </div>
      </div>
      <CameraSettings tabIndex={tabIndex} setTabIndex={setTabIndex} />
    </div>
  );
};

export default CameraGrid;
