import React from 'react' import { ClipboardIcon } from '@/components/ClipboardIcon' import { copy2clipboard } from '@/utils' type TextBoxProps = { id?: string text: string } const TextBox: React.FC = (props) => { const onClick = (event: React.MouseEvent): void => { copy2clipboard(props.text) event.currentTarget.blur() } return (

{props.text}

) } type Props = { localVideo?: boolean connectionId: string | null clientId?: string | null } export const ConnectionStatusBar: React.FC = (props) => { const { localVideo, connectionId, clientId } = props return ( <> {connectionId ? ( ) : null} {clientId !== null && clientId !== undefined && connectionId !== clientId ? ( ) : null} ) }