aboutsummaryrefslogtreecommitdiffstats
path: root/src/features/quickSwitch/index.ts
diff options
context:
space:
mode:
authorLibravatar Markus Hatvan <markus_hatvan@aon.at>2021-10-14 13:24:58 +0200
committerLibravatar GitHub <noreply@github.com>2021-10-14 13:24:58 +0200
commitfe1ba2ad6affeb6c0e97c73171d8fa3f31dde73e (patch)
tree10caa332d957421e982c7ddd0c94623d5d62314d /src/features/quickSwitch/index.ts
parentchore: convert various JS to TS (#2062) (diff)
downloadferdium-app-fe1ba2ad6affeb6c0e97c73171d8fa3f31dde73e.tar.gz
ferdium-app-fe1ba2ad6affeb6c0e97c73171d8fa3f31dde73e.tar.zst
ferdium-app-fe1ba2ad6affeb6c0e97c73171d8fa3f31dde73e.zip
chore: convert files to TS (#2066)
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}