import PropTypes from 'prop-types'; import React from 'react'; import { withTranslation } from 'react-i18next'; import CopyableInput from './CopyableInput'; class ShareModal extends React.PureComponent { render() { const { projectId, ownerUsername, projectName } = this.props; const hostname = window.location.origin; return (

{projectName}

`} />
); } } ShareModal.propTypes = { projectId: PropTypes.string.isRequired, ownerUsername: PropTypes.string.isRequired, projectName: PropTypes.string.isRequired, t: PropTypes.func.isRequired }; export default withTranslation()(ShareModal);