mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2025-03-13 21:12:55 -04:00
26 lines
718 B
TypeScript
26 lines
718 B
TypeScript
|
// This file is part of Moonfire NVR, a security camera network video recorder.
|
||
|
// Copyright (C) 2021 The Moonfire NVR Authors; see AUTHORS and LICENSE.txt.
|
||
|
// SPDX-License-Identifier: GPL-v3.0-or-later WITH GPL-3.0-linking-exception
|
||
|
|
||
|
import { Camera } from "../types";
|
||
|
import LiveCamera from "./LiveCamera";
|
||
|
import Multiview from "./Multiview";
|
||
|
|
||
|
export interface LiveProps {
|
||
|
cameras: Camera[];
|
||
|
layoutIndex: number;
|
||
|
}
|
||
|
|
||
|
const Live = ({ cameras, layoutIndex }: LiveProps) => {
|
||
|
return (
|
||
|
<Multiview
|
||
|
layoutIndex={layoutIndex}
|
||
|
cameras={cameras}
|
||
|
renderCamera={(camera: Camera) => <LiveCamera camera={camera} />}
|
||
|
/>
|
||
|
);
|
||
|
};
|
||
|
|
||
|
export { MultiviewChooser } from "./Multiview";
|
||
|
export default Live;
|