diff options
Diffstat (limited to 'app/components/WindowChrome.js')
| -rw-r--r-- | app/components/WindowChrome.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/app/components/WindowChrome.js b/app/components/WindowChrome.js new file mode 100644 index 0000000000..d7094813db --- /dev/null +++ b/app/components/WindowChrome.js @@ -0,0 +1,16 @@ +// @flow +import React, { Component } from 'react'; + +export default class WindowChrome 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 |
