aboutsummaryrefslogtreecommitdiffstats
path: root/src/features/quickSwitch/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/features/quickSwitch/index.ts')
-rw-r--r--src/features/quickSwitch/index.ts19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/features/quickSwitch/index.ts b/src/features/quickSwitch/index.ts
new file mode 100644
index 000000000..e9cc36b2a
--- /dev/null
+++ b/src/features/quickSwitch/index.ts
@@ -0,0 +1,19 @@
1import { state as ModalState } from './store';
2
3export { default as Component } from './Component';
4const state = ModalState;
5
6const debug = require('debug')('Ferdi:feature:quickSwitch');
7
8export default function initialize() {
9 debug('Initialize quickSwitch feature');
10
11 function showModal() {
12 state.isModalVisible = true;
13 }
14
15 window['ferdi'].features.quickSwitch = {
16 state,
17 showModal,
18 };
19}