import { forwardRef } from 'react'; import { motion } from 'framer-motion'; import PropTypes from 'prop-types'; import { clsm } from '../../../utils'; import { useProfileViewAnimation } from '../contexts/ProfileViewAnimation'; import { useResponsiveDevice } from '../../../contexts/ResponsiveDevice'; const StreamInfo = forwardRef( ({ message, icon, playerProfileViewAnimationProps, isVisible }, ref) => { const { isProfileViewExpanded, shouldAnimateProfileView } = useProfileViewAnimation(); const { isDefaultResponsiveView } = useResponsiveDevice(); return ( {icon} {message && (

{message}

)}
); } ); StreamInfo.propTypes = { icon: PropTypes.node.isRequired, isVisible: PropTypes.bool, message: PropTypes.string, playerProfileViewAnimationProps: PropTypes.object.isRequired }; StreamInfo.defaultProps = { icon: null, isVisible: false, message: '' }; export default StreamInfo;