aboutsummaryrefslogtreecommitdiff
path: root/src/content/actions/follow-controller.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/content/actions/follow-controller.js')
-rw-r--r--src/content/actions/follow-controller.js29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/content/actions/follow-controller.js b/src/content/actions/follow-controller.js
new file mode 100644
index 0000000..3fd4dce
--- /dev/null
+++ b/src/content/actions/follow-controller.js
@@ -0,0 +1,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 };