2025-08-13 14:23:48 +01:00
|
|
|
import FrontCameraOverviewCard from "../components/FrontCameraOverview/FrontCameraOverviewCard";
|
|
|
|
|
import Sightings from "../components/PlateStack/Sightings";
|
|
|
|
|
import RearCameraOverviewCard from "../components/RearCameraOverview/RearCameraOverviewCard";
|
2025-08-15 09:32:33 +01:00
|
|
|
import { useNavigate } from "react-router";
|
|
|
|
|
import { useSwipeable } from "react-swipeable";
|
2025-08-13 14:23:48 +01:00
|
|
|
|
|
|
|
|
const Dashboard = () => {
|
2025-08-15 09:32:33 +01:00
|
|
|
const navigate = useNavigate();
|
|
|
|
|
|
|
|
|
|
const handlers = useSwipeable({
|
|
|
|
|
onSwipedDown: () => navigate("/system-settings"),
|
|
|
|
|
trackMouse: true,
|
|
|
|
|
});
|
|
|
|
|
|
2025-08-13 14:23:48 +01:00
|
|
|
return (
|
2025-08-15 09:32:33 +01:00
|
|
|
<div
|
|
|
|
|
className="mx-auto grid grid-cols-1 sm:grid-cols-1 lg:grid-cols-2 gap-2 px-2 sm:px-4 lg:px-0 w-full"
|
|
|
|
|
{...handlers}
|
|
|
|
|
>
|
2025-08-13 14:23:48 +01:00
|
|
|
<FrontCameraOverviewCard />
|
|
|
|
|
<RearCameraOverviewCard />
|
|
|
|
|
<Sightings title="Front Camera Sightings" />
|
|
|
|
|
<Sightings title="Rear Camera Sightings" />
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default Dashboard;
|