MCPcopy Index your code
hub / github.com/dmarman/sha256algorithm / ButtonClockFinish

Function ButtonClockFinish

src/components/ButtonClockFinish.js:1–6  ·  view source on GitHub ↗
({ clock, onClockFinish, lastClock })

Source from the content-addressed store, hash-verified

1function 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">

Callers

nothing calls this directly

Calls 1

lastClockFunction · 0.85

Tested by

no test coverage detected