2025-08-13 14:23:48 +01:00
|
|
|
import clsx from "clsx";
|
|
|
|
|
import Card from "../UI/Card";
|
|
|
|
|
import { useSwipeable } from "react-swipeable";
|
|
|
|
|
import { useNavigate } from "react-router";
|
|
|
|
|
import { useOverviewVideo } from "../../hooks/useOverviewVideo";
|
2025-08-20 08:27:05 +01:00
|
|
|
import SightingOverview from "../SightingOverview/SightingOverview";
|
2025-08-13 14:23:48 +01:00
|
|
|
|
2025-09-26 11:42:12 +01:00
|
|
|
const FrontCameraOverviewCard = () => {
|
2025-08-13 14:23:48 +01:00
|
|
|
useOverviewVideo();
|
|
|
|
|
const navigate = useNavigate();
|
|
|
|
|
const handlers = useSwipeable({
|
2025-09-29 13:00:56 +01:00
|
|
|
onSwipedRight: () => navigate("/camera-settings"),
|
2025-08-13 14:23:48 +01:00
|
|
|
trackMouse: true,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
return (
|
2025-08-20 08:27:05 +01:00
|
|
|
<Card
|
|
|
|
|
className={clsx(
|
2025-09-26 11:42:12 +01:00
|
|
|
"relative min-h-[40vh] md:min-h-[60vh] max-h-[80vh] lg:w-[70%] overflow-y-hidden"
|
2025-08-20 08:27:05 +01:00
|
|
|
)}
|
|
|
|
|
>
|
2025-09-26 13:38:47 +01:00
|
|
|
<div className="w-full" {...handlers}>
|
2025-08-20 08:27:05 +01:00
|
|
|
<SightingOverview />
|
2025-08-13 14:23:48 +01:00
|
|
|
</div>
|
|
|
|
|
</Card>
|
|
|
|
|
);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default FrontCameraOverviewCard;
|