X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;ds=sidebyside;f=resources%2Fjs%2Fcomponents%2Fepisodes%2FItem.js;h=4fb466669dfdc2591b90fab9778f263cff4a4ab4;hb=e10222af705e3475fcea6e0b17d1c9984a62db26;hp=8f1bafcb240508500e0336768c3a4af99d70b4ef;hpb=dec43db11e9433f5bfcfaa091518082559cb3169;p=alttp.git diff --git a/resources/js/components/episodes/Item.js b/resources/js/components/episodes/Item.js index 8f1bafc..4fb4666 100644 --- a/resources/js/components/episodes/Item.js +++ b/resources/js/components/episodes/Item.js @@ -1,42 +1,151 @@ import PropTypes from 'prop-types'; import React from 'react'; +import { Button } from 'react-bootstrap'; import { useTranslation } from 'react-i18next'; +import { Link } from 'react-router-dom'; +import Channels from './Channels'; +import Crew from './Crew'; +import MultiLink from './MultiLink'; import Players from './Players'; +import Icon from '../common/Icon'; +import { hasPassed, hasSGRestream, isActive } from '../../helpers/Episode'; +import { canApplyForEpisode, canRestreamEpisode } from '../../helpers/permissions'; +import { withUser } from '../../helpers/UserContext'; -const Item = ({ episode }) => { +const Item = ({ episode, onAddRestream, onApply, onEditRestream, user }) => { const { t } = useTranslation(); - return