{Utils, DraftStore, React} = require 'nylas-exports' {RetinaImg} = require 'nylas-component-kit' class CalendarButton extends React.Component @displayName: 'CalendarButton' render: => _onClick: => BrowserWindow = require('remote').require('browser-window') w = new BrowserWindow title: 'N1 Quick Schedule' nodeIntegration: false webPreferences: webSecurity:false width: 800 height: 650 # Here, we load an arbitrary html file into the Composer! path = require 'path' url = path.join __dirname, '..', 'calendar.html' w.loadURL "file://#{url}?draftClientId=#{@props.draftClientId}" _getDialog: => require('remote').require('dialog') module.exports = CalendarButton