/* eslint-disable react/prop-types */ import { h, Fragment } from 'preact' import striptags from 'striptags' import { H1 } from '../../components/Text' import Markdown from '../../components/Markdown' import translations from '../../data/strings' import InfoLayout from '../../layouts/InfoLayout' import VideoEmbed from '../../components/VideoEmbed' import { EpisodeCard, Title, InfoContent, Row, ActionButton as Button, TrailerContainer, } from './styles' import config from '../../data/config' import Page from '../../layouts/Page' const SeriesPage = ({ data }) => { const credits = ` ## Credits ${data.credits} ` const dateString = `${new Date()}` let tzShort = // Works for the majority of modern browsers dateString.match(/\(([^\)]+)\)$/) || // IE outputs date strings in a different format: dateString.match(/([A-Z]+) [\d]{4}$/) if (tzShort) { // Old Firefox uses the long timezone name (e.g., "Central // Daylight Time" instead of "CDT") tzShort = tzShort[1].match(/[A-Z]/g).join('') } return (

{data.title}:

{data.subtitle}

{data.description} {data.trailer ? ( ) : null} {data.links.length ? {data.links.map(link => ( ))} : null }
{data.episodes.future.length ? ( {translations.en.nextStream}: {data.episodes.future.map(feeditem => ( ))} ) : null} {data.episodes.past.length ? ( Past streams: {data.episodes.past.map(feeditem => ( setEmbedUrl(`${config.peertube_root}${feeditem.embedPath}`) } {...feeditem} /> ))} ) : null} Credits {credits}
) } export default SeriesPage