import React from 'react'; import { connect } from 'react-redux' import ImmutablePureComponent from 'react-immutable-pure-component'; import { Link } from 'react-router-dom'; const mapStateToProps = (state, props) => ({ instance: state.get('instance'), soapbox: state.get('soapbox'), }); class LandingPage extends ImmutablePureComponent { shouldComponentUpdate(nextProps, nextState) { const { instance, soapbox } = nextProps; return !instance.isEmpty() && !soapbox.isEmpty(); } render() { const { instance, soapbox } = this.props; if (instance.isEmpty() || soapbox.isEmpty()) return null; return (
{instance.get('title')}
{instance.get('description')}

With an account on {instance.get('title')} you'll be able to follow people on any server in the fediverse.

♡{new Date().getFullYear()}. Copying is an act of love. Please copy and share.
  • About
  • Terms of Service
  • Privacy Policy
  • DMCA
  • Source Code
) } } export default connect(mapStateToProps)(LandingPage);