aboutsummaryrefslogtreecommitdiff
path: root/modern/src/RemoveDialog.js
blob: 26bdeb55a9406582fc5f82bf9709e6b74929fadf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import t from './common/localization'
import React, { Component } from 'react';
import Button from '@material-ui/core/Button';
import Dialog from '@material-ui/core/Dialog';
import DialogActions from '@material-ui/core/DialogActions';
import DialogContent from '@material-ui/core/DialogContent';
import DialogContentText from '@material-ui/core/DialogContentText';

class RemoveDialog extends Component {
  render() {
    return (
      <Dialog
        open={this.props.open}
        onClose={() => { this.props.onClose() }}>
        <DialogContent>
          <DialogContentText>{t('sharedRemoveConfirm')}</DialogContentText>
        </DialogContent>
        <DialogActions>
          <Button color="primary">{t('sharedRemove')}</Button>
          <Button color="primary" autoFocus>{t('sharedCancel')}</Button>
        </DialogActions>
      </Dialog>
    );
  }
}

export default RemoveDialog;