2025-08-13 14:23:48 +01:00
|
|
|
import clsx from "clsx";
|
|
|
|
|
import Card from "../UI/Card";
|
2025-08-15 09:32:33 +01:00
|
|
|
import CardHeader from "../UI/CardHeader";
|
|
|
|
|
import { faCamera } from "@fortawesome/free-regular-svg-icons";
|
2025-08-13 14:23:48 +01:00
|
|
|
import { SnapshotContainer } from "../CameraOverview/SnapshotContainer";
|
|
|
|
|
import { useSwipeable } from "react-swipeable";
|
|
|
|
|
import { useNavigate } from "react-router";
|
|
|
|
|
import { useOverviewVideo } from "../../hooks/useOverviewVideo";
|
|
|
|
|
|
|
|
|
|
const FrontCameraOverviewCard = () => {
|
|
|
|
|
useOverviewVideo();
|
|
|
|
|
const navigate = useNavigate();
|
|
|
|
|
const handlers = useSwipeable({
|
|
|
|
|
onSwipedRight: () => navigate("/front-camera-settings"),
|
|
|
|
|
trackMouse: true,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<Card className={clsx("relative min-h-[40vh] md:min-h-[60vh] h-auto")}>
|
|
|
|
|
<div className="flex flex-col space-y-3 h-full" {...handlers}>
|
2025-08-15 09:32:33 +01:00
|
|
|
<CardHeader title="Front Overiew" icon={faCamera} />
|
2025-08-13 14:23:48 +01:00
|
|
|
<SnapshotContainer side="CameraFront" />
|
|
|
|
|
</div>
|
|
|
|
|
</Card>
|
|
|
|
|
);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default FrontCameraOverviewCard;
|