]> git.localhorst.tv Git - alttp.git/blob - resources/js/components/rounds/SeedDialog.js
c4db7d3377da70beaeb04a7c680fb09fa24ee4c0
[alttp.git] / resources / js / components / rounds / SeedDialog.js
1 import PropTypes from 'prop-types';
2 import React from 'react';
3 import { Modal } from 'react-bootstrap';
4 import { withTranslation } from 'react-i18next';
5
6 import SeedForm from './SeedForm';
7 import i18n from '../../i18n';
8
9 const SeedDialog = ({
10         onHide,
11         participant,
12         round,
13         show,
14 }) =>
15 <Modal className="seed-dialog" onHide={onHide} show={show}>
16         <Modal.Header closeButton>
17                 <Modal.Title>
18                         {i18n.t('rounds.setSeed')}
19                 </Modal.Title>
20         </Modal.Header>
21         <SeedForm
22                 onCancel={onHide}
23                 participant={participant}
24                 round={round}
25         />
26 </Modal>;
27
28 SeedDialog.propTypes = {
29         onHide: PropTypes.func,
30         round: PropTypes.shape({
31         }),
32         show: PropTypes.bool,
33         tournament: PropTypes.shape({
34         }),
35 };
36
37 export default withTranslation()(SeedDialog);