Skip to content
TypeScript
296 B
Raw Blame
import { createContext } from "react";

/**
 * Where markdown loads an image file on the host by its absolute path, when the page has no
 * environment to ask. The guest page sets it to its own route.
 */
export const HostImageUrlContext = createContext<((path: string) => string) | null>(null);