({ clock, onClockFinish, lastClock })
| 1 | function ButtonClockFinish({ clock, onClockFinish, lastClock }) { |
| 2 | let bg = 'hover:bg-gray-600'; |
| 3 | if(clock === lastClock()) bg = 'opacity-25 cursor-default'; |
| 4 | |
| 5 | return ( |
| 6 | <button onClick={onClockFinish} className={`px-3 py-2 rounded ${bg} bg-gray-700 text-white mx-1 transition`} title="Go to last step"> |
| 7 | <svg xmlns="http://www.w3.org/2000/svg" className="icon icon-tabler icon-tabler-player-skip-forward" |
| 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