Files
Mav-Mobile-UI/src/pages/FrontCamera.tsx

31 lines
859 B
TypeScript
Raw Normal View History

2025-08-13 14:23:48 +01:00
import CameraSettings from "../components/CameraSettings/CameraSettings";
import OverviewVideoContainer from "../components/FrontCameraSettings/OverviewVideoContainer";
2025-08-18 16:04:03 +01:00
import { Toaster } from "sonner";
2025-08-13 14:23:48 +01:00
import { useNavigate } from "react-router";
import { useSwipeable } from "react-swipeable";
const FrontCamera = () => {
const navigate = useNavigate();
const handlers = useSwipeable({
onSwipedLeft: () => navigate("/"),
trackMouse: true,
});
return (
<div
className="mx-auto grid grid-cols-1 sm:grid-cols-1 lg:grid-cols-2 gap-4 px-2 sm:px-4 lg:px-0 w-full"
{...handlers}
>
2025-08-18 12:53:30 +01:00
<OverviewVideoContainer
title={"Front Camera"}
side="CameraFront"
2025-08-18 12:53:30 +01:00
settingsPage={true}
/>
2025-08-13 14:23:48 +01:00
<CameraSettings title="Front Camera Settings" />
2025-08-18 16:04:03 +01:00
<Toaster />
2025-08-13 14:23:48 +01:00
</div>
);
};
export default FrontCamera;