import React from "react"; import PropTypes from "prop-types"; import { Map } from "immutable"; import { useDispatch, useSelector } 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"; export const Episode = (props) => { const dispatch = useDispatch(); const trackedSeason = useSelector((state) => state.showStore.getIn(["show", "tracked_season"], null) ); const trackedEpisode = useSelector((state) => state.showStore.getIn(["show", "tracked_episode"], null) ); return (