import React, { Component } from 'react' import { connect } from 'react-redux' import actions from 'site/actions' import { history } from "site/store" import { CREDITS_STRINGS } from "../constants" import { LastMuseumLogo } from "../icons" import "./credits.css" class Credits extends Component { constructor(props) { super(props) this.handleClick = this.handleClick.bind(this) this.goHome = this.goHome.bind(this) this.changeLanguage = this.changeLanguage.bind(this) } componentDidMount() { actions.site.interact() } handleClick(e) { e && e.preventDefault() } goHome() { history.push(`/thelastmuseum/home/`) } changeLanguage() { actions.site.changeLanguage(this.props.language === "de" ? "en" : "de") } render() { const { language } = this.props return (
{LastMuseumLogo}
CREDITS
{CREDITS_STRINGS.artwork_credits_head[language]}
Home
{this.props.language === "de" ? ( de / en ) : ( de / en )}
) } } const mapStateToProps = state => ({ language: state.site.language, }) export default connect(mapStateToProps)(Credits) /* Sources:
René Magritte, The Glass Key (La clef de verre), 1959, oil on canvas.
Courtesy The Menil Collection, Houston.
René Guénon. Lord of the World, 1927 / Etudes Traditionnelles, 1938.
Robert Smithson. Incidents of Mirror-Travel in the Yucatan, 1969.
Thomas Pynchon. Against the Day, 2006.
Mircea Eliade. The Forge and the Crucible, 1956.
Clarice Lispector. The Egg and the Chicken, 1964.
Clarice Lispector. Agua Viva, 1973
*/