aboutsummaryrefslogtreecommitdiffstats
path: root/src/features/publishDebugInfo/index.ts
blob: 33b8eb6f5886f4a86b44f5501406828b8afbfedb (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')('Ferdium:feature:publishDebugInfo');

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

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

  window['ferdium'].features.publishDebugInfo = {
    state,
    showModal,
  };
}