import { ILinkProps, Link, Panel, PanelType, Stack } from '@fluentui/react' import { useLocalState, useRemoteState } from '../../state' import { commonClasses } from '../../utils/theme/common-styles' import { FC } from 'react' const InlineLink: FC = props => { return } export const MediaPanel: React.FC = () => { const connections = useRemoteState(state => state.connections) const [ showEmptyMediaPanel, currentCameraId, currentMicId, displayMediaActive, screenShareButtonRef, cameraButtonRef, micButtonRef, chatsButtonRef, ] = useLocalState(state => [ state.showEmptyMediaPanel, state.currentCameraId, state.currentMicId, state.screenMediaActive, state.screenShareButtonRef, state.cameraButtonRef, state.micButtonRef, state.chatsButtonRef, ]) const showMediaPanel = showEmptyMediaPanel && !connections.length && !currentCameraId && !currentMicId && !displayMediaActive const handleClick = (ref?: React.RefObject) => () => { ref?.current?.focus() ref?.current?.click() } return ( { useLocalState.setState({ showEmptyMediaPanel: false, }) }} styles={{ main: { bottom: 0, height: '35vh', top: 'auto', }, content: { paddingBottom: '3em', }, }} isHiddenOnDismiss isBlocking={false} isOpen={showMediaPanel} closeButtonAriaLabel="Close" >
You can join using your{' '} camera ,{' '} microphone {' '} and{' '} screen sharing {' '} or just head over to the{' '} chats{' '} and start chatting.
) }