clientjs/packages/dashboard-components/src/layouts/DefaultLayoutSidebar.jsx
changeset 0 5f4fcbc80b37
child 17 c2c97df0a642
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/clientjs/packages/dashboard-components/src/layouts/DefaultLayoutSidebar.jsx	Fri Sep 14 17:57:34 2018 +0200
@@ -0,0 +1,25 @@
+import React from 'react';
+
+import DefaultLayout from './DefaultLayout';
+import Sidebar from '../ui/Sidebar';
+
+const DefaultLayoutSidebar = ({
+  component: Component,
+  ...rest
+}) => (
+  <DefaultLayout
+    {...rest}
+    component={matchProps => (
+      <div className="row">
+        <div className="col col-3">
+          <Sidebar {...rest} />
+        </div>
+        <div className="col col-9">
+          <Component {...matchProps} />
+        </div>
+      </div>
+    )}
+  />
+);
+
+export default DefaultLayoutSidebar;