mirror of
https://github.com/orangecoding/fredy.git
synced 2026-06-16 12:31:07 +00:00
24 lines
702 B
JavaScript
24 lines
702 B
JavaScript
import React from 'react';
|
|
import { Modal, Header, Icon, Button } from 'semantic-ui-react';
|
|
|
|
const UserRemovalModal = function UserRemovalModal({ onOk, onCancel }) {
|
|
return (
|
|
<Modal open={true}>
|
|
<Header icon="warning sign" content="Warning" />
|
|
<Modal.Content>
|
|
<p>Removing this user will also remove all associated jobs.</p>
|
|
</Modal.Content>
|
|
<Modal.Actions>
|
|
<Button color="red" onClick={() => onCancel()}>
|
|
<Icon name="remove" /> Cancel
|
|
</Button>
|
|
<Button color="green" onClick={() => onOk()}>
|
|
<Icon name="checkmark" /> Remove
|
|
</Button>
|
|
</Modal.Actions>
|
|
</Modal>
|
|
);
|
|
};
|
|
|
|
export default UserRemovalModal;
|