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

412 B
Raw Blame
import type { Screenshot } from '@mimik/core/guides/types';
import type { ScreenshotEdits } from '@mimik/core/screenshot/types';

export function renderKey(screenshot: Screenshot, edits: ScreenshotEdits | undefined): string | null {
  if (!screenshot.blob) return null;
  return `${screenshot.id}:${screenshot.blob.size}:${JSON.stringify(edits?.annotations ?? null)}:${JSON.stringify(edits?.target ?? null)}`;
}