π¬ A browser extension and desktop app that turns your clicks into step-by-step guides with annotated screenshots π
TypeScript browser-extensionchrome-extensiondocumentationfirefox-extensionguide-generatorlocal-firstmanifest-v3privacy-firstproductivityreactscreenshotstep-by-step-guidetutorialtypescriptworkflowwxt
export interface MicToggleState {
locked: boolean;
labelKey: string;
}
export function micToggleState(enabled: boolean, keyed: boolean, paused: boolean): MicToggleState {
const locked = (!keyed && !enabled) || paused;
const labelKey = paused
? 'voice.pausedWithCapture'
: locked
? 'voice.needsApiKey'
: enabled
? 'voice.turnOff'
: 'voice.turnOn';
return { locked, labelKey };
}