// Lightweight cross-component flag: is a capture in progress (recording,
// uploading, or an unsaved note/photo staged)? The global idle timer
// (idle-reset.tsx) reads this so it never yanks the user back home and
// discards unsaved work. Kept as a module-level variable rather than React
// state because the reader lives elsewhere in the tree and only needs the
// value at idle time — no re-render required.

let busy = false

export function setCaptureBusy(value: boolean) {
  busy = value
}

export function isCaptureBusy() {
  return busy
}
