aboutActiveUsers:{id:'server_banner.about_active_users',defaultMessage:'People using this server during the last 30 days (Monthly Active Users)'},
});
constmapStateToProps=state=>({
server:state.get('server'),
});
exportdefault@connect(mapStateToProps)
@injectIntl
classServerBannerextendsReact.PureComponent{
staticpropTypes={
server:PropTypes.object,
dispatch:PropTypes.func,
intl:PropTypes.object,
};
componentDidMount(){
const{dispatch}=this.props;
dispatch(fetchServer());
}
render(){
const{server,intl}=this.props;
constisLoading=server.get('isLoading');
return(
<divclassName='server-banner'>
<divclassName='server-banner__introduction'>
<FormattedMessageid='server_banner.introduction'defaultMessage='{domain} is part of the decentralized social network powered by {mastodon}.'values={{domain:<strong>{domain}</strong>, mastodon: <a href='https://joinmastodon.org' target='_blank'>Mastodon</a> }} />