Files
discord-decomp/modules/video_calls/native/components/SingleStream.tsx
T
2026-11-01 12:12:55 +02:00

17 lines
669 B
TypeScript

// Metro module 10819 (f10820).
import { resetFocus, toggleFocus } from "../ChannelCallStore";
import StreamTile from "./StreamTile";
import { ResizeMode } from "./VideoRenderer";
import ChannelRTCActionCreators from "../../../../actions/ChannelRTCActionCreators";
export default function SingleStream(props) {
const { participant, channel } = props;
return <StreamTile gestureEnabled resizeMode={ResizeMode.CONTAIN} onSingleTap={function onSingleTap() {
toggleFocus();
}} onDoubleTap={function onDoubleTap() {
resetFocus();
ChannelRTCActionCreators.selectParticipant(channel.id, null);
}} participant={participant} style={{
flex: 1
}} />;
};