import React from 'react' import PropTypes from 'prop-types' import { Trans } from 'react-i18next' import { Modal, Alert, Button, ControlLabel, FormControl, FormGroup } from 'react-bootstrap' import AccessibleModal from '../../../shared/components/accessible-modal' export default function CloneProjectModalContent({ animation = true, show, cancel, handleSubmit, clonedProjectName, setClonedProjectName, error, inFlight, valid }) { return (
setClonedProjectName(event.target.value)} />
{error && ( {error.length ? ( error ) : ( )} )}
) } CloneProjectModalContent.propTypes = { animation: PropTypes.bool, show: PropTypes.bool.isRequired, cancel: PropTypes.func.isRequired, handleSubmit: PropTypes.func.isRequired, clonedProjectName: PropTypes.string, setClonedProjectName: PropTypes.func.isRequired, error: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]), inFlight: PropTypes.bool.isRequired, valid: PropTypes.bool.isRequired }