From aa0470a3076f5ac65a0311c76e58254547f3eae0 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sat, 3 Nov 2018 17:29:49 +0100 Subject: begin client --- client/common/sidebar.component.js | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 client/common/sidebar.component.js (limited to 'client/common/sidebar.component.js') diff --git a/client/common/sidebar.component.js b/client/common/sidebar.component.js new file mode 100644 index 00000000..487f3289 --- /dev/null +++ b/client/common/sidebar.component.js @@ -0,0 +1,37 @@ +import React, { Component } from 'react' +import { NavLink } from 'react-router-dom' +import { connect } from 'react-redux' + +class Sidebar extends Component { + render() { + const { hash } = this.props + if (!hash) { + return ( +
+
+ ) + } + return ( +
+

Media

+ Summary + Media Record + Media Info + Sugarcube + +

Keyframes

+ Keyframe + +

Detectors

+ Places 365 + Coco +
+ ) + } +} + +const mapStateToProps = state => ({ + hash: state.metadata.hash, +}) + +export default connect(mapStateToProps)(Sidebar) -- cgit v1.2.3-70-g09d2