X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=resources%2Fjs%2Fcomponents%2Fepisodes%2FItem.js;h=612c5ea85f6f76db13ca777f85a93fbebae70bf2;hb=1f91cd54bca46f686aaed871c9a7a7d000179ee0;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..612c5ea 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 { getLink } from '../../helpers/Event'; +import { canApplyForEpisode, canRestreamEpisode } from '../../helpers/permissions'; +import { useUser } from '../../hooks/user'; -const Item = ({ episode }) => { +const Item = ({ episode, onAddRestream, onApply, onEditRestream }) => { const { t } = useTranslation(); + const { user } = useUser(); - return