Skip to content

armgit / mimik

Public Imported from GitHub
0

🎬 A browser extension and desktop app that turns your clicks into step-by-step guides with annotated screenshots πŸ“–

363 B
Raw Blame
export type VoiceStopAction = 'stop-host' | 'recover' | 'report-lost' | 'skip';

export function voiceStopAction(input: {
  hostAlive: boolean;
  hasOrphanAudio: boolean;
  wasRecording: boolean;
}): VoiceStopAction {
  if (input.hasOrphanAudio) return 'recover';
  if (input.hostAlive) return 'stop-host';
  return input.wasRecording ? 'report-lost' : 'skip';
}