// @flow import React from 'react'; import { Avatar } from '../../../avatar'; import { connect } from '../../../redux'; import { calculateAvatarDimensions } from '../../functions'; type Props = { /** * The height of the window. */ height: number, /** * The name of the participant (if any). */ name: string } /** * Component displaying the avatar for the premeeting screen. * * @param {Props} props - The props of the component. * @returns {ReactElement} */ function PremeetingAvatar({ height, name }: Props) { const { marginTop, size } = calculateAvatarDimensions(height); if (size <= 5) { return null; } return (