import React from 'react'; import cn from 'classnames'; import PropTypes from 'prop-types'; import { Dialog } from 'coral-ui'; import styles from './AlwaysPremodUserDialog.css'; import Button from 'coral-ui/components/Button'; import t from 'coral-framework/services/i18n'; class AlwaysPremodUserDialog extends React.Component { handlePerform = () => { this.props.onPerform(); }; render() { const { open, onCancel, username, info } = this.props; return ( ×

{t('alwayspremoddialog.always_premod_user')}

{t('alwayspremoddialog.are_you_sure', username)}

{info}

); } } AlwaysPremodUserDialog.propTypes = { open: PropTypes.bool, onPerform: PropTypes.func.isRequired, onCancel: PropTypes.func.isRequired, username: PropTypes.string, info: PropTypes.string, }; export default AlwaysPremodUserDialog;