diff --git a/src/video-grid/VideoTile.tsx b/src/video-grid/VideoTile.tsx index 44980b7..a82cb5b 100644 --- a/src/video-grid/VideoTile.tsx +++ b/src/video-grid/VideoTile.tsx @@ -66,6 +66,27 @@ export const VideoTile = forwardRef( }, ref ) => { + const toolbarButtons: JSX.Element[] = []; + if (!isLocal) { + toolbarButtons.push( + + ); + + if (screenshare) { + toolbarButtons.push( + + ); + } + } + return ( ( ref={ref} {...rest} > - {(!isLocal || screenshare) && ( -
- {!isLocal && ( - - )} - {screenshare && ( - - )} -
+ {toolbarButtons.length > 0 && ( +
{toolbarButtons}
)} {videoMuted && ( <>