({ clock, onClockFast, lastClock })
| 1 | function ButtonClockFast({ clock, onClockFast, lastClock }) { |
| 2 | let bg = 'hover:bg-gray-600'; |
| 3 | if(clock + 10 > lastClock()) bg = 'opacity-25 cursor-default'; |
| 4 | |
| 5 | return ( |
| 6 | <button onClick={onClockFast} className={`px-3 py-2 rounded ${bg} bg-gray-700 text-white mx-1 transition`} title="Go 10 steps forward"> |
| 7 | <svg xmlns="http://www.w3.org/2000/svg" className="icon icon-tabler icon-tabler-player-track-next" |
| 8 | width="16" height="16" viewBox="0 0 24 24" strokeWidth="2" stroke="#ffffff" fill="none" |
| 9 | strokeLinecap="round" strokeLinejoin="round"> |
nothing calls this directly
no test coverage detected