import React from "react" export default function ListDetails(props) { return (

{props.data.get("title")}

{props.data.get("title")}

{props.data.get("year")}

{props.data.get("plot")}

{props.children}
); } function Runtime(props) { if (props.runtime === undefined) { return null; } return (

 {props.runtime} min

); } function Ratings(props) { if (props.rating === undefined) { return null; } return (

 {Number(props.rating).toFixed(1)}  {props.votes !== undefined && ({props.votes} counts) }

); } function TrackingLabel(props) { let wishlistStr = props.wishlisted ? "Wishlisted" : ""; if (props.trackedEpisode !== null && props.trackedSeason !== null && props.trackedEpisode !== undefined && props.trackedSeason !== undefined) { if ((props.trackedSeason === 0) && (props.trackedEpisode === 0)) { wishlistStr = "Whole show tracked"; } else { wishlistStr = `Tracked from season ${props.trackedSeason} episode ${props.trackedEpisode}`; } } if (wishlistStr === "") { return null; } return ( {wishlistStr} ); } function PolochonMetadata(props) { if (!props.quality || props.quality === "") { return null; } return (

{props.quality} {props.container} {props.videoCodec} {props.audioCodec} {props.releaseGroup}

); } function Genres(props) { if (props.genres === undefined) { return null; } // Uppercase first genres const prettyGenres = props.genres.toJS().map( (word) => word[0].toUpperCase() + word.substr(1) ).join(", "); return (

 {prettyGenres}

); }