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 {
getSiteLogo = () => {
const { instance, soapbox } = this.props;
const logos = {
imgLogo: (),
textLogo: (
{instance.get('title')}
),
}
return soapbox.get('logo') ? logos['imgLogo'] : logos['textLogo'];
}
render() {
const { instance, soapbox } = this.props;
if (instance.isEmpty()) return null;
const siteLogo = this.getSiteLogo();
return (
{siteLogo}
{instance.get('description')}
♡{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);