🩹(frontend) allow fullscreen share warning interaction in PiP

Enable PiP fullscreen share warning buttons; drop `inert` from StageFrame
This commit is contained in:
Cyril
2026-07-01 13:31:36 +02:00
committed by aleb_the_flash
parent d54e9c2ad0
commit 636c2168be
@@ -1,12 +1,19 @@
import { useTranslation } from 'react-i18next'
import { styled } from '@/styled-system/jsx'
import { useLocalParticipant } from '@livekit/components-react'
export const StageFrame = ({ children }: { children: React.ReactNode }) => {
const { t } = useTranslation('rooms', {
keyPrefix: 'pictureInPicture',
})
const { localParticipant } = useLocalParticipant()
return (
<Container role="region" aria-label={t('stage')} {...{ inert: '' }}>
<Container
role="region"
aria-label={t('stage')}
{...(!localParticipant.isScreenShareEnabled ? { inert: '' } : {})}
>
{children}
</Container>
)