π¬ 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 { VoiceUpdate } from '@mimik/core/capture/voice/voice-update';
import { useEffect, useState } from 'react';
import { desktopNarration } from '../desktop-narration';
export function useNarrationUpdate(): { update: VoiceUpdate; seenLive: boolean } {
const [update, setUpdate] = useState<VoiceUpdate>(desktopNarration.update);
const [seenLive, setSeenLive] = useState(desktopNarration.update.phase !== 'idle');
useEffect(
() =>
desktopNarration.onUpdate((next) => {
if (next.phase !== 'idle') setSeenLive(true);
setUpdate(next);
}),
[],
);
return { update, seenLive };
}