Files
Mav-Mobile-UI/src/components/FrontCameraSettings/OverviewVideoContainer.tsx

31 lines
772 B
TypeScript
Raw Normal View History

2025-08-13 14:23:48 +01:00
import clsx from "clsx";
import { SnapshotContainer } from "../CameraOverview/SnapshotContainer";
import { faCamera } from "@fortawesome/free-regular-svg-icons";
2025-08-13 14:23:48 +01:00
import Card from "../UI/Card";
import CardHeader from "../UI/CardHeader";
2025-08-13 14:23:48 +01:00
const OverviewVideoContainer = ({
title,
side,
2025-08-18 12:53:30 +01:00
settingsPage,
2025-08-13 14:23:48 +01:00
}: {
title: string;
side: string;
2025-08-18 12:53:30 +01:00
settingsPage?: boolean;
2025-08-13 14:23:48 +01:00
}) => {
return (
<Card
className={clsx(
"min-h-[40vh] md:min-h-[60vh] max-h-[80vh] h-auto overflow-y-hidden"
)}
>
2025-08-13 14:23:48 +01:00
<div className="relative flex flex-col space-y-3 h-full">
<CardHeader title={title} icon={faCamera} />
2025-08-18 12:53:30 +01:00
<SnapshotContainer side={side} settingsPage={settingsPage} />
2025-08-13 14:23:48 +01:00
</div>
</Card>
);
};
export default OverviewVideoContainer;