From 50904f4b010c417d558174005a7b4c5868e7d8d9 Mon Sep 17 00:00:00 2001
From: Jules Laplace <julescarbon@gmail.com>
Date: Thu, 29 Jun 2017 01:18:06 +0200
Subject: sketch folder stuff

---
 client/components/Modal.jsx | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 client/components/Modal.jsx

(limited to 'client/components/Modal.jsx')

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>
+    )
+  }
+}
-- 
cgit v1.2.3-70-g09d2

