import React from 'react'; import PropTypes from 'prop-types'; import { Modal, ModalHeader, ModalSection, ModalFooter } from 'strapi-helper-plugin'; import { useIntl } from 'react-intl'; import { Button, Padded } from '@buffetjs/core'; import { Row } from 'reactstrap'; import useEditLocale from '../../hooks/useEditLocale'; import { getTrad } from '../../utils'; const ModalEdit = ({ localeToEdit, onClose }) => { const { isEditing, editLocale } = useEditLocale(); const { formatMessage } = useIntl(); const isOpened = Boolean(localeToEdit); const handleEdit = () => editLocale(localeToEdit).then(onClose); return (
Put the form here
); }; ModalEdit.defaultProps = { localeToEdit: undefined, }; ModalEdit.propTypes = { localeToEdit: PropTypes.shape({}), onClose: PropTypes.func.isRequired, }; export default ModalEdit;