AI-native knowledge base & Evernote/Obsidian alternative with instant sync & native MCP. Free on Cloudflare or self-hosted via Docker.
HTML ai-agentcloudflarecloudflare-d1cloudflare-r2cloudflare-workersdockerelectronevernoteevernote-alternativeknowledge-basemcpnote-takingobsidian-alternativeoffline-firstpersonal-knowledge-basepwaself-hostedsqlitetiptapweb-clipper
import { createContext } from "react";
import type { AttachmentMenuTarget } from "./useEditorResourceActions";
export type AttachmentTranscript = {
memoId: string;
target: AttachmentMenuTarget;
text: string;
loading: boolean;
completedSegments: number;
error: string | null;
};
export type AttachmentTranscriptContextValue = {
transcript: AttachmentTranscript | null;
canInsert: boolean;
onDismiss: () => void;
onRetry: () => void;
onInsert: () => void;
};
export const AttachmentTranscriptContext = createContext<AttachmentTranscriptContextValue | null>(null);