{"size": 1114, "ext": "es6", "max_stars_repo_path": "packages/client-app/internal_packages/thread-snooze/lib/main.es6", "max_stars_repo_name": "cnheider/nylas-mail", "max_stars_repo_stars_event_min_datetime": "2015-10-05T16:35:18.000Z", "max_stars_repo_stars_event_max_datetime": "2017-01-27T15:33:55.000Z", "max_issues_repo_path": "packages/client-app/internal_packages/thread-snooze/lib/main.es6", "max_issues_repo_name": "xiaoquan1/nylas-mail", "max_issues_repo_issues_event_min_datetime": "2015-10-05T17:37:34.000Z", "max_issues_repo_issues_event_max_datetime": "2017-01-27T18:36:01.000Z", "max_forks_repo_path": "packages/client-app/internal_packages/thread-snooze/lib/main.es6", "max_forks_repo_name": "xiaoquan1/nylas-mail", "max_forks_repo_forks_event_min_datetime": "2015-10-05T17:14:18.000Z", "max_forks_repo_forks_event_max_datetime": "2017-01-24T19:36:40.000Z"}
{"max_stars_count": 24369, "max_issues_count": 3209, "max_forks_count": 1308, "avg_line_length": 33.7575757576, "max_line_length": 139, "alphanum_fraction": 0.7809694794}
import {ComponentRegistry} from 'nylas-exports';
import {HasTutorialTip} from 'nylas-component-kit';

import {ToolbarSnooze, QuickActionSnooze} from './snooze-buttons';
import SnoozeMailLabel from './snooze-mail-label'
import SnoozeStore from './snooze-store'


export function activate() {
  this.snoozeStore = new SnoozeStore()

  const ToolbarSnoozeWithTutorialTip = HasTutorialTip(ToolbarSnooze, {
    title: "Handle it later!",
    instructions: "Snooze this email and it'll return to your inbox later. Click here or swipe across the thread in your inbox to snooze.",
  });

  this.snoozeStore.activate()
  ComponentRegistry.register(ToolbarSnoozeWithTutorialTip, {role: 'ThreadActionsToolbarButton'});
  ComponentRegistry.register(QuickActionSnooze, {role: 'ThreadListQuickAction'});
  ComponentRegistry.register(SnoozeMailLabel, {role: 'Thread:MailLabel'});
}

export function deactivate() {
  ComponentRegistry.unregister(ToolbarSnooze);
  ComponentRegistry.unregister(QuickActionSnooze);
  ComponentRegistry.unregister(SnoozeMailLabel);
  this.snoozeStore.deactivate()
}

export function serialize() {

}
