1 import PropTypes from 'prop-types';
2 import React from 'react';
3 import { useTranslation } from 'react-i18next';
5 import { getName } from '../../helpers/Crew';
7 const DialogEpisode = ({ episode }) => {
8 const { t } = useTranslation();
10 if (!episode) return null;
17 {t('episodes.startTime', { date: new Date(episode.start) })}
20 {episode.players.map(p => getName(p)).join(', ')}
25 DialogEpisode.propTypes = {
26 episode: PropTypes.shape({
27 event: PropTypes.shape({
28 title: PropTypes.string,
30 players: PropTypes.arrayOf(PropTypes.shape({
32 start: PropTypes.string,
36 export default DialogEpisode;