import React, { useEffect, useState } from 'react'; import '@tencentcloud/chat-uikit-react/dist/cjs/index.css'; import './style.scss' import { Avatar, Icon, IconTypes } from '@tencentcloud/chat-uikit-react'; import { useTUILiveContext } from "./TUILive"; export function LiveNotification():React.ReactElement { const { group, ownerProfile } = useTUILiveContext('LiveNotification'); const [isShow, setIsShow] = useState(true); useEffect(()=>{ if (group?.notification && ownerProfile) { setIsShow(true); } }, [group?.notification, ownerProfile] ) const handleCloseNotification = () => { setIsShow(false); }; return ( <> {isShow &&

{ group?.notification }

} ) }