Mailspring/app/internal_packages/thread-search/lib/main.es6

17 lines
412 B
Text
Raw Normal View History

import { ComponentRegistry, WorkspaceStore } from 'mailspring-exports';
2017-09-27 02:33:08 +08:00
import ThreadSearchBar from './thread-search-bar';
export const configDefaults = {
showOnRightSide: false,
2017-09-27 02:33:08 +08:00
};
export function activate() {
ComponentRegistry.register(ThreadSearchBar, {
location: WorkspaceStore.Location.ThreadList.Toolbar,
2017-09-27 02:33:08 +08:00
});
}
export function deactivate() {
2017-09-27 02:33:08 +08:00
ComponentRegistry.unregister(ThreadSearchBar);
}