diff options
author | 2021-10-14 13:24:58 +0200 | |
---|---|---|
committer | 2021-10-14 13:24:58 +0200 | |
commit | fe1ba2ad6affeb6c0e97c73171d8fa3f31dde73e (patch) | |
tree | 10caa332d957421e982c7ddd0c94623d5d62314d /src/features/quickSwitch/index.ts | |
parent | chore: convert various JS to TS (#2062) (diff) | |
download | ferdium-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.ts | 19 |
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 @@ | |||
1 | import { state as ModalState } from './store'; | ||
2 | |||
3 | export { default as Component } from './Component'; | ||
4 | const state = ModalState; | ||
5 | |||
6 | const debug = require('debug')('Ferdi:feature:quickSwitch'); | ||
7 | |||
8 | export 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 | } | ||