summaryrefslogtreecommitdiffhomepage
path: root/app/components/WindowChrome.js
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@codeispoetry.ru>2017-05-23 13:31:07 +0100
committerAndrej Mihajlov <and@codeispoetry.ru>2017-06-05 13:18:52 +0300
commitc166b83b56f3a9f98be7ac9fe3674a652e58f7d8 (patch)
tree1e110a4f988343aaf58598a78244184b67e7f0e3 /app/components/WindowChrome.js
parentfdb86c8ab71493cd10d176505653bb411a6921e2 (diff)
downloadmullvadvpn-c166b83b56f3a9f98be7ac9fe3674a652e58f7d8.tar.xz
mullvadvpn-c166b83b56f3a9f98be7ac9fe3674a652e58f7d8.zip
Add transitions
Diffstat (limited to 'app/components/WindowChrome.js')
-rw-r--r--app/components/WindowChrome.js26
1 files changed, 26 insertions, 0 deletions
diff --git a/app/components/WindowChrome.js b/app/components/WindowChrome.js
new file mode 100644
index 0000000000..e1df040d6c
--- /dev/null
+++ b/app/components/WindowChrome.js
@@ -0,0 +1,26 @@
+import React, { Component, PropTypes } from 'react';
+
+/**
+ * A component used to chip out arrow in the app header using CSS mask
+ *
+ * @export
+ * @class WindowChrome
+ * @extends {Component}
+ */
+export default class WindowChrome extends Component {
+ static propTypes = {
+ children: PropTypes.oneOfType([
+ PropTypes.arrayOf(PropTypes.element),
+ PropTypes.element,
+ ])
+ };
+
+ render() {
+ const chromeClass = ['window-chrome', 'window-chrome--' + process.platform];
+ return (
+ <div className={ chromeClass.join(' ') }>
+ { this.props.children }
+ </div>
+ );
+ }
+} \ No newline at end of file