import React, { Component } from 'react' import { connect } from 'react-redux' import { MediaCitation } from '../components.media' export const Intro = ({ paragraph, media, onAnnotationClick }) => { const annotation = paragraph.annotations[0] const item = media.lookup[annotation.settings.media_id] // console.log(item) const style = { backgroundImage: 'url(' + item.settings.file.url + ')', } let lines = [] if (annotation.settings.title) { lines = lines.concat(annotation.settings.title.split(/]*>/)) } if (annotation.settings.subtitle) { lines = lines.concat(annotation.settings.subtitle.split(/]*>/)) } return (
{lines.map((line, i) => ( ))}
) } const ScheduleComponent = ({ episodes, venues }) => { console.log(episodes.lookup[episodes.order[0]]) const currentEpisode = episodes.lookup[episodes.order[0]].settings return (
{'Animism on e-flux.com is the ninth iteration of the exhibition and overall '} {'research project presented at Extra City and MuHKA, Antwerp, 2010; Kunsthalle '} {'Bern, 2010; Generali Foundation, Vienna, 2011; the Haus der Kulturen der Welt, '} {'Berlin, 2012; e-flux, New York, 2012; OCAT Shenzhen, 2013; Times Museum Seoul, '} {'2013; and Ashkal Alwan, Beirut, 2014. Presented here in its digital iteration, '} {'the exhibition will be released in four episodes starting October 2020.'}
Schedule
{episodes.order.map(id => { const episode = episodes.lookup[id] return (
{episode.release_date}
{'Episode '}{episode.episode_number}{': '} {episode.title}
) })}
Curator
{currentEpisode.curator}
Author
{currentEpisode.author}
Artists
{currentEpisode.artists}
) } const mapStateToProps = state => ({ episodes: state.episode.index, episode: state.episode.show.res || {}, venues: state.venue.index, }) export const Schedule = connect(mapStateToProps)(ScheduleComponent)