import React, { useEffect, useRef } from "react"; interface VideoTileProps { isLocal: boolean; nameplate: string; bindVideoTile: (videoRef: any, isContent?: boolean) => void; isContent: true; } const VideoTile: React.FC = ({ bindVideoTile, nameplate, isLocal, isContent, }) => { const videoRef = useRef(null); useEffect(() => { if (!videoRef.current) { return; } bindVideoTile(videoRef.current); }, [videoRef, bindVideoTile]); const classes = `VideoTile ${ isLocal ? "VideoTile--local" : !isContent ? "VideoTile--remote" : "" }`; return (
); }; export default VideoTile;