forked from codesandbox/codesandbox-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathModal.js
More file actions
32 lines (30 loc) · 908 Bytes
/
Modal.js
File metadata and controls
32 lines (30 loc) · 908 Bytes
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
28
29
30
31
32
import React from 'react';
import { Button } from '@codesandbox/common/lib/components/Button';
import Modal from '../../components/Modal';
import { Title } from './_sidebar.elements';
export default ({ isOpen, loading, onClose, onClick }) => (
<Modal isOpen={isOpen} width={400}>
<Title>Are you sure?</Title>
<p>
You can email us in the next 24 hours at{' '}
<a href="mailto:hello@codesandbox.io">hello@codesandbox.io</a> to revert
the deleting.
</p>
<footer
css={`
margin-top: 30px;
display: grid;
grid-template-columns: 1fr 1fr;
justify-content: center;
grid-column-gap: 40px;
`}
>
<Button small disabled={loading} onClick={onClose}>
No, Keep Account
</Button>
<Button small disabled={loading} danger onClick={onClick}>
Close Account
</Button>
</footer>
</Modal>
);