aboutsummaryrefslogtreecommitdiffstats
path: root/src/features/quickSwitch/index.ts
blob: e9cc36b2ae5156aa8c5e34af2ba5bbf7ce4909e3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { state as ModalState } from './store';

export { default as Component } from './Component';
const state = ModalState;

const debug = require('debug')('Ferdi:feature:quickSwitch');

export default function initialize() {
  debug('Initialize quickSwitch feature');

  function showModal() {
    state.isModalVisible = true;
  }

  window['ferdi'].features.quickSwitch = {
    state,
    showModal,
  };
}