diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2017-06-29 01:18:06 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2017-06-29 01:18:06 +0200 |
| commit | 50904f4b010c417d558174005a7b4c5868e7d8d9 (patch) | |
| tree | 2fb9bad10e09ff66ccc5313289a62367843326a3 /client/components/Modal.jsx | |
| parent | a190d638c608f4352e3f01d72ed419a5ab5129ed (diff) | |
sketch folder stuff
Diffstat (limited to 'client/components/Modal.jsx')
| -rw-r--r-- | client/components/Modal.jsx | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/client/components/Modal.jsx b/client/components/Modal.jsx new file mode 100644 index 0000000..3681ce4 --- /dev/null +++ b/client/components/Modal.jsx @@ -0,0 +1,17 @@ +import { h, Component } from 'preact' + +export default class Modal extends Component { + constructor(props) { + super() + } + render() { + const className = this.props.visible ? 'modal visible' : 'modal' + return ( + <div class={className}> + <div class='inner'> + {this.props.children} + </div> + </div> + ) + } +} |
