about summary refs log tree commit diff
path: root/app/javascript/themes/glitch/util/optional_motion.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/javascript/themes/glitch/util/optional_motion.js')
-rw-r--r--app/javascript/themes/glitch/util/optional_motion.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/javascript/themes/glitch/util/optional_motion.js b/app/javascript/themes/glitch/util/optional_motion.js
new file mode 100644
index 000000000..b8a57b22f
--- /dev/null
+++ b/app/javascript/themes/glitch/util/optional_motion.js
@@ -0,0 +1,5 @@
+import { reduceMotion } from 'themes/glitch/util/initial_state';
+import ReducedMotion from './reduced_motion';
+import Motion from 'react-motion/lib/Motion';
+
+export default reduceMotion ? ReducedMotion : Motion;