Files
test/src/routes/BroadcastRoute.tsx
T
Kyle Geib b4ea27e8c6 ISSUE-004 - Saving progress. Have two options for image display.
BackgroundImage uses <img> and can be centered with VideoFeedFrame, but cannot be shrunk when the window becomes narrow.
BackgroundImageDiv uses div and a background image property, but cannot be centered with VideoFeedFrame.
2021-12-21 21:17:38 -05:00

23 lines
649 B
TypeScript

import { useEffect, useRef, useState } from "react";
import { FullScreenContainer } from "./styles";
import { Layout } from "../components/Broadcast/Layout";
import { RouteHeader } from "../components/Common/RouteHeader";
export default function Broadcast() {
const [height, setHeight] = useState(0);
const ref = useRef < HTMLHeadElement>(null);
useEffect(() => {
if (ref?.current != null)
setHeight(ref.current.clientHeight);
});
return (
<FullScreenContainer minHeight={400} minWidth={600}>
<RouteHeader ref={ref} title="Broadcast Page" />
<Layout headerHeight={height} />
</FullScreenContainer>
);
}