diff options
| author | Andrej Mihajlov <and@codeispoetry.ru> | 2017-05-23 13:31:07 +0100 |
|---|---|---|
| committer | Andrej Mihajlov <and@codeispoetry.ru> | 2017-06-05 13:18:52 +0300 |
| commit | c166b83b56f3a9f98be7ac9fe3674a652e58f7d8 (patch) | |
| tree | 1e110a4f988343aaf58598a78244184b67e7f0e3 /app/components/WindowChrome.js | |
| parent | fdb86c8ab71493cd10d176505653bb411a6921e2 (diff) | |
| download | mullvadvpn-c166b83b56f3a9f98be7ac9fe3674a652e58f7d8.tar.xz mullvadvpn-c166b83b56f3a9f98be7ac9fe3674a652e58f7d8.zip | |
Add transitions
Diffstat (limited to 'app/components/WindowChrome.js')
| -rw-r--r-- | app/components/WindowChrome.js | 26 |
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 |
