MCPcopy Index your code
hub / github.com/tinyplex/tinybase / CheckpointInfo

Function CheckpointInfo

test/unit/core/ui-react/hooks.test.tsx:715–732  ·  view source on GitHub ↗
({
  mode,
  checkpoints,
}: {
  readonly mode: string;
  readonly checkpoints: Checkpoints;
})

Source from the content-addressed store, hash-verified

713};
714
715const CheckpointInfo = ({
716 mode,
717 checkpoints,
718}: {
719 readonly mode: string;
720 readonly checkpoints: Checkpoints;
721}) => {
722 const undoInformation = useUndoInformation(checkpoints);
723 const redoInformation = useRedoInformation(checkpoints);
724 const [available, action, checkpointId, label] =
725 mode == 'undoInformation' ? undoInformation : redoInformation;
726 return (
727 <>
728 {JSON.stringify([available, checkpointId ?? null, label])}
729 <button onClick={action} />
730 </>
731 );
732};
733
734const State = ({
735 mode,

Callers

nothing calls this directly

Calls 2

useUndoInformationFunction · 0.90
useRedoInformationFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…