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

Function ButtonAutoClock

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

lastClockFunction · 0.85

Tested by

no test coverage detected