π¬ 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
import type { MicrophoneListState } from './microphone-list-state';
export type MicrophonePermission = PermissionState | 'unknown';
export type MicrophoneStatus = 'allowed' | 'blocked' | 'pending';
export function microphoneStatus(permission: MicrophonePermission, list: MicrophoneListState): MicrophoneStatus {
if (permission === 'denied') return 'blocked';
if (permission === 'granted' || list === 'ready') return 'allowed';
return 'pending';
}