summaryrefslogtreecommitdiffhomepage
path: root/app/components/PlatformWindow.js
diff options
context:
space:
mode:
authorLinus Färnstrand <linus@mullvad.net>2018-01-18 19:58:44 +0100
committerLinus Färnstrand <linus@mullvad.net>2018-01-18 19:58:44 +0100
commit1e9ea182530217becbf99c645d3929c6fe9c55db (patch)
tree6fabe4c4a4c81e997548d4a7d48aa0f2581f6689 /app/components/PlatformWindow.js
parentbe2cdd817bfd7f412156c0204bdb4ed77a17f7e4 (diff)
parenta2987cd855902fc70568c4d367b9d13eb364ee35 (diff)
downloadmullvadvpn-1e9ea182530217becbf99c645d3929c6fe9c55db.tar.xz
mullvadvpn-1e9ea182530217becbf99c645d3929c6fe9c55db.zip
Merge branch 'platform-window'
Diffstat (limited to 'app/components/PlatformWindow.js')
-rw-r--r--app/components/PlatformWindow.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/app/components/PlatformWindow.js b/app/components/PlatformWindow.js
new file mode 100644
index 0000000000..8b8e2c462f
--- /dev/null
+++ b/app/components/PlatformWindow.js
@@ -0,0 +1,16 @@
+// @flow
+import React, { Component } from 'react';
+
+export default class PlatformWindow extends Component {
+ props: {
+ children: Array<React.Element<*>> | React.Element<*>
+ }
+ render(): React.Element<*> {
+ const chromeClass = ['window-chrome', 'window-chrome--' + process.platform];
+ return (
+ <div className={ chromeClass.join(' ') }>
+ { this.props.children }
+ </div>
+ );
+ }
+} \ No newline at end of file