({ clock, onAutoClock, lastClock, autoplay })
| 1 | function ButtonAutoClock({ clock, onAutoClock, lastClock, autoplay }) { |
| 2 | let bg = 'hover:bg-gray-600'; |
| 3 | if(clock === lastClock()) bg = 'opacity-25 cursor-default'; |
| 4 | |
| 5 | return ( |
| 6 | <button onClick={onAutoClock} className={`px-3 py-2 rounded ${bg} bg-gray-700 text-white mx-1 transition`} title="Auto run"> |
| 7 | <div className="flex items-center justify-between"> |
| 8 | { autoplay ? |
| 9 | <svg xmlns="http://www.w3.org/2000/svg" className="icon icon-tabler icon-tabler-player-pause" width="16" |
nothing calls this directly
no test coverage detected