Simplify overly complicated VideoGrid

This commit is contained in:
Daniel Abramov
2023-06-05 20:51:01 +02:00
parent b11ab01bbe
commit 79018606b2
4 changed files with 139 additions and 149 deletions

View File

@@ -16,13 +16,18 @@ limitations under the License.
import React from "react";
import { RoomMember } from "matrix-js-sdk/src/models/room-member";
import { LocalParticipant, RemoteParticipant } from "livekit-client";
import { useRoomMemberName } from "./useRoomMemberName";
import { VideoTile } from "./VideoTile";
import { TileDescriptor } from "./TileDescriptor";
export interface ItemData {
member: RoomMember;
sfuParticipant?: LocalParticipant | RemoteParticipant;
}
interface Props {
item: TileDescriptor;
item: ItemData;
width?: number;
height?: number;
getAvatar: (