aboutsummaryrefslogtreecommitdiff
path: root/src/content/actions/follow-controller.js
blob: 3fd4dcefbd1d2cd994d3bab666243fe756e57cc6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import actions from 'content/actions';

const enable = (newTab) => {
  return {
    type: actions.FOLLOW_CONTROLLER_ENABLE,
    newTab,
  };
};

const disable = () => {
  return {
    type: actions.FOLLOW_CONTROLLER_DISABLE,
  };
};

const keyPress = (key) => {
  return {
    type: actions.FOLLOW_CONTROLLER_KEY_PRESS,
    key: key
  };
};

const backspace = () => {
  return {
    type: actions.FOLLOW_CONTROLLER_BACKSPACE,
  };
};

export { enable, disable, keyPress, backspace };