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 CommandForm from './CommandForm';
8 const CommandDialog = ({
15 const { t } = useTranslation();
17 return <Modal className="report-dialog" onHide={onHide} show={show}>
18 <Modal.Header closeButton>
20 {t(name ? 'twitchBot.commandDialog' : 'twitchBot.addCommand')}
32 CommandDialog.propTypes = {
33 name: PropTypes.string,
34 onHide: PropTypes.func,
35 onSubmit: PropTypes.func,
36 settings: PropTypes.shape({
41 export default CommandDialog;