import React from "react"; const PlayButtonComponent = ({ isPlaying, currentTick, lastSimulatedTick, onPlay, onPause }) => (
{ if (isPlaying) { onPause(); } else { if (currentTick !== lastSimulatedTick) { onPlay(); } } }} > {isPlaying ? ( ) : ( )}
); export default PlayButtonComponent;