From f8f617c97fcb2df3dbefc9527d974151e367cb60 Mon Sep 17 00:00:00 2001 From: Georgios Andreadis Date: Mon, 18 Sep 2017 16:52:11 +0200 Subject: Implement basic experiment mode with timeline The timeline doesn't trigger anything yet, but the visual element is in place and connected. --- src/components/timeline/PlayButtonComponent.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/components/timeline/PlayButtonComponent.js (limited to 'src/components/timeline/PlayButtonComponent.js') diff --git a/src/components/timeline/PlayButtonComponent.js b/src/components/timeline/PlayButtonComponent.js new file mode 100644 index 00000000..6ec70cc3 --- /dev/null +++ b/src/components/timeline/PlayButtonComponent.js @@ -0,0 +1,12 @@ +import React from "react"; + +const PlayButtonComponent = ({isPlaying, onPlay, onPause}) => ( +
isPlaying ? onPause() : onPlay()}> + {isPlaying ? + : + + } +
+); + +export default PlayButtonComponent; -- cgit v1.2.3