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 πŸ“–

434 B
Raw Blame
import { configureUi } from '@mimik/ui/env';
import { createTab } from '@/lib/browser-api/create-tab';
import { sendMessage } from '@/lib/messaging';

configureUi({
  tabs: {
    create: (url) => createTab({ url }) as never,
  },
  ai: {
    rewriteSelection: (text, instruction) => sendMessage('rewriteSelection', { text, instruction }),
    describeGuide: (guideId) => sendMessage('generateGuideDescription', { guideId }),
  },
});