(frontend) introduce a side panel for effects

It simply renders the video track if enabled. It's a basis
for building the 'blur your screen' feature.

More in the upcoming commits.
This commit is contained in:
lebaudantoine
2024-09-18 16:49:36 +02:00
committed by aleb_the_flash
parent 00fa7beebd
commit 756be17cc7
8 changed files with 106 additions and 10 deletions

View File

@@ -9,6 +9,7 @@ import { useTranslation } from 'react-i18next'
import { ParticipantsList } from './controls/Participants/ParticipantsList'
import { useWidgetInteraction } from '../hooks/useWidgetInteraction'
import { ReactNode } from 'react'
import { Effects } from './Effects'
type StyledSidePanelProps = {
title: string
@@ -65,7 +66,7 @@ export const SidePanel = () => {
const layoutSnap = useSnapshot(layoutStore)
const sidePanel = layoutSnap.sidePanel
const { isParticipantsOpen } = useWidgetInteraction()
const { isParticipantsOpen, isEffectsOpen } = useWidgetInteraction()
const { t } = useTranslation('rooms', { keyPrefix: 'sidePanel' })
if (!sidePanel) {
@@ -81,6 +82,7 @@ export const SidePanel = () => {
})}
>
{isParticipantsOpen && <ParticipantsList />}
{isEffectsOpen && <Effects />}
</StyledSidePanel>
)
}