import React, { Component } from 'react'; import { defineMessages } from 'react-intl'; import { withModalMounter } from '/imports/ui/components/modal/service'; import Modal from '/imports/ui/components/modal/simple/component'; import Button from '/imports/ui/components/button/component'; import { styles } from './styles'; const messages = defineMessages({ yesLabel: { id: 'app.endMeeting.yesLabel', description: 'confirm button label', }, noLabel: { id: 'app.endMeeting.noLabel', description: 'cancel confirm button label', }, removeConfirmTitle: { id: 'app.userList.menu.removeConfirmation.label', description: 'title for remove user confirmation modal', }, removeConfirmDesc: { id: 'app.userlist.menu.removeConfirmation.desc', description: 'description for remove user confirmation', }, }); const propTypes = { }; class RemoveUserModal extends Component { constructor(props) { super(props); this.state = { checked: false, }; } render() { const { mountModal, onConfirm, user, title, intl, } = this.props; const { checked, } = this.state; return ( mountModal(null)} hideBorder contentLabel={title} >
{intl.formatMessage(messages.removeConfirmTitle, { 0: user.name })}
); } } RemoveUserModal.propTypes = propTypes; export default withModalMounter(RemoveUserModal);