From 2f2c1ef4029dee17be0d16acdd60b7d1718d519f Mon Sep 17 00:00:00 2001
From: Jules Laplace <julescarbon@gmail.com>
Date: Wed, 19 Jul 2017 02:06:56 +0200
Subject: refactor file browser stuff

---
 .../components/Browser/Folders/NewFolderView.jsx   | 24 ++++++++++++++++++++++
 1 file changed, 24 insertions(+)
 create mode 100644 client/components/Browser/Folders/NewFolderView.jsx

(limited to 'client/components/Browser/Folders/NewFolderView.jsx')

diff --git a/client/components/Browser/Folders/NewFolderView.jsx b/client/components/Browser/Folders/NewFolderView.jsx
new file mode 100644
index 0000000..7573450
--- /dev/null
+++ b/client/components/Browser/Folders/NewFolderView.jsx
@@ -0,0 +1,24 @@
+import { h, Component } from 'preact'
+
+export default function NewFolderView (props) {
+  console.log(props)
+  if (! props.visible) {
+    return null
+  }
+  return (
+    <div class='window'>
+      <div class='heading'>
+        <b>new folder</b>
+        <div class='buttons'>
+          <button onClick={props.onClose}>x</button>
+        </div>
+      </div>
+      <input type='text'
+        autofocus
+        placeholder='Enter a name'
+        value={props.name}
+        onChange={props.onChange}
+      />
+    </div>
+  )
+}
-- 
cgit v1.2.3-70-g09d2

