1 import PropTypes from 'prop-types';
2 import React from 'react';
3 import { Modal } from 'react-bootstrap';
4 import { useTranslation } from 'react-i18next';
6 import RestreamAddForm from './RestreamAddForm';
7 import RestreamEditForm from './RestreamEditForm';
9 const RestreamDialog = ({
19 const { t } = useTranslation();
21 return <Modal className="restream-dialog" onHide={onHide} show={show}>
22 <Modal.Header closeButton>
24 {t('episodes.restreamDialog.title')}
30 editRestream={editRestream}
32 manageCrew={manageCrew}
34 onRemoveRestream={onRemoveRestream}
46 RestreamDialog.propTypes = {
47 channel: PropTypes.shape({
49 editRestream: PropTypes.func,
50 episode: PropTypes.shape({
52 manageCrew: PropTypes.func,
53 onHide: PropTypes.func,
54 onRemoveRestream: PropTypes.func,
55 onSubmit: PropTypes.func,
59 export default RestreamDialog;