Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import * as React from "react";
const WinTitleBar = require('electron-react-titlebar').TitleBar as any;
const OSXTitlebar = require('react-desktop/src/titleBar/macOs/titleBar').default;
import * as PropTypes from 'prop-types';
import { Icon } from "@blueprintjs/core";
import {remote} from 'electron';
import * as classNames from 'classnames';
require('./TitleBar.scss');
export class TitleBar extends React.Component<{origin: URL, dark: boolean, onOriginClick: Function}> {
renderOriginMenu () {
return <div> this.props.onOriginClick()}>
{this.props.origin.hostname}
</div>
}
renderWindows () {
return