import * as React from 'react' import * as Styled from './index.style' import { Props, State } from './type' import { TemplateActivityContext } from '../common/template-context' import LiveList from './live-list' export class TemplateActivityLiveList extends React.Component { static defaultProps = new Props() state = new State() static contextType = TemplateActivityContext context: React.ContextType public render() { const { isEdit, style: oriStyle, type, descriptionColor, titleColor, nickNameColor } = this.props const style = { ...oriStyle } return (
{ this.context === null && isEdit ? ( 请添加该组件至 [模板活动-容器]中 ) : this.context?.activityInfo?.actEventInfo.livesConfig.length > 0 || !isEdit ? ( ) : ( 该模板活动未配置作品展示模块 ) }
) } }