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 SettingsForm from './SettingsForm';
8 const SettingsDialog = ({
15 const { t } = useTranslation();
17 return <Modal className="snes-settings-dialog" onHide={onHide} show={show}>
18 <Modal.Header closeButton>
24 deviceList={deviceList}
32 SettingsDialog.propTypes = {
33 deviceList: PropTypes.arrayOf(PropTypes.string),
34 onHide: PropTypes.func,
35 onSubmit: PropTypes.func,
36 settings: PropTypes.shape({
41 export default SettingsDialog;