1 | import * as React from 'react';
|
2 | import Modal from 'react-responsive-modal';
|
3 |
|
4 | const onClose = () => null;
|
5 | const open = true;
|
6 |
|
7 | function SimpleModal() {
|
8 | return <Modal onClose={onClose} open={open} />;
|
9 | }
|
10 |
|
11 | function PropsModal() {
|
12 | return (
|
13 | <Modal
|
14 | onClose={onClose}
|
15 | open={open}
|
16 | closeOnEsc={true}
|
17 | center={true}
|
18 | showCloseIcon={true}
|
19 | closeIconSize={20}
|
20 | animationDuration={20}
|
21 | onEntered={() => null}
|
22 | onExited={() => null}
|
23 | onEscKeyDown={() => null}
|
24 | onOverlayClick={() => null}
|
25 | classNames={{}}
|
26 | styles={{}}
|
27 | />
|
28 | );
|
29 | }
|