import React from "react"; import PropTypes from "prop-types"; import { Map } from "immutable"; import { connect } from "react-redux"; import { showWishlistToggle } from "../../../actions/shows"; import { inLibrary, isEpisodeWishlisted, prettyEpisodeName, } from "../../../utils"; import { Plot } from "../../details/plot"; import { PolochonMetadata } from "../../details/polochon"; import { ReleaseDate } from "../../details/releaseDate"; import { Runtime } from "../../details/runtime"; import { Title } from "../../details/title"; import { DownloadAndStream } from "../../buttons/download"; import { ShowMore } from "../../buttons/showMore"; import { EpisodeSubtitlesButton } from "./subtitlesButton"; import { EpisodeThumb } from "./episodeThumb"; import { EpisodeTorrentsButton } from "./torrentsButton"; const mapStateToProps = (state) => ({ trackedSeason: state.showStore.getIn(["show", "tracked_season"], null), trackedEpisode: state.showStore.getIn(["show", "tracked_episode"], null), }); const episode = (props) => (